r/Clojure • • Apr 28 '23

Introducing Morse

https://clojure.org/news/2023/04/28/introducing-morse
83 Upvotes

11 comments sorted by

25

u/rpd9803 Apr 28 '23

I just clicked through the link, the github and the guide.. three sources of documentation for a graphical tool for inspecting clojure data and I still have no clue what it looks like. Somebody put a screenshot somewhere, cant wait to see it!

Also, is there a story for using this with cljs? Doesn't look like it, but it'd be neat!

11

u/agile-is-what Apr 28 '23

11

u/[deleted] Apr 28 '23

3

u/theoriginalmatt Apr 30 '23

The Clojure team is proud to introduce Morse, a graphical, interactive
tool for browsing and inspecting Clojure data, evolved from REBL.

2

u/rpd9803 Apr 28 '23

Thanks for finding it! :)

5

u/fancyl Apr 29 '23 edited Jun 21 '23

This has been deleted in protest of the greedy API changes and the monetization of user-provided content and unpaid user moderation.

4

u/slashkehrin Apr 28 '23

Happy to see more tooling for visualization. Very underrated space with huge potential for UX gains.

3

u/slifin Apr 28 '23 edited Apr 28 '23

I think Morse is REBL as a replicant client? 🤔

Replicant-server looks like it attempts to solve the nuances of sending Clojure evaluation over a wire

2

u/TheLastSock Apr 29 '23 edited Apr 29 '23

Can someone do a simple walkthrough with through datomic? I called morse/inspect on the result of a datomic query and it wouldn't let me nav through anything. i just stared at the datomic ids in something other then my editor.

TY TY

3

u/ares623 Apr 28 '23

I'm probably showing my ignorance here, but I feel like if you need something like Morse/REBL to figure out what your program is doing, it might be time to step back?

I definitely can see myself using this because Clojure maps do get really hard to understand, and this feels like admitting it is FUBAR and you need a GUI to workaround it.

6

u/TheLastSock Apr 29 '23 edited Apr 29 '23

because Clojure maps do get really hard to understand.

That hasn't been my experience. Hashmaps are the simplest of functions, they take a key, they give a value.

What I think you're thinking is, it's hard to know what's in an instance of a hashmap.

But really that's not hard either, we can just ask the hashmap

  (def m {:a 1 :b 2})
  (keys m)
  ;; => (:a :b)

Heck, you could send your keys to chatgpt and ask it all sorts of questions to help find the keys you need in anyway you see fit.

So really, underneath it all, the hard part is, knowing the "purpose" of the hashmap. Not just how it was created, but also what it will be used to do.

And to know that, you have to know everything that created it and everywhere it will be used. Which is to say, everything about the program.

So, if you're having trouble understanding what's in a hashmap, the real issue is that the program is complex, and it's time to step back and figure out what it's doing. :)