3 ms·
I think it clicks quickly for some people but not others (me). I don't get to use Clojure for work currently (.NET shop) but I really like it. In my spare time
by kgwxd 6y ago
I think it clicks quickly for some people but not others (me). I don't get to use Clojure for work currently (.NET shop) but I really like it. In my spare time I remake a lot of things I do at work to learn Clojure using real world scenarios.
I've read this guide several times over the past few years, watched a bunch of the videos and I still find myself stoping/starting the repl very often because it feels difficult to keep the current state of the environment in my head, or something isn't updated as I expected, there's an error I can't decipher in the REPL that the compiler gives better info on. I feel I need to restart constantly, it's still my main workflow. I'm not sure what it is that's not clicking for me, but I keep trying. Either way, I'm no worse off than with my C# workflow.
- randompwd 6y agoIf there was a way to visualise everything that's loaded in the repl, it would be great. As in, let me easily & visually explore the world of the repl right now. Ditto with other langs, I just started with Spring Boot & Kotlin & geez, Spring annotations are poison chalice material. Googling how to debug spring leads you to 'just turn on debug logs' which dont tell you 1/1000 of what you'd need to know to debug annotation issues.
- The_rationalist 6y agoAs you might be aware, Kotlin has a nice repl for kotlin script files. If there was a way to visualise everything that's loaded in the repl, it would be great. yeah, I don't think that exist
- filoeleven 6y ago> As in, let me easily & visually explore the world of the repl right now. That sounds great! I’m envisioning something that for each loaded namespace would show: - fns that match saved files - fns that differ: - newer in file / not in REPL - newer in REPL / not in file I guess that would have to be an IDE-level thing, since it needs to know about file changes and REPL contents. A namespaced list of all public var names can be thrown together pretty quickly, but it seems less helpful: (->> all-ns (ns-name) (map (juxt identity clojure.repl/dir)) (into {})) (I’m on mobile so I haven’t checked that!)