Hacker News new | past | comments | ask | show | jobs | submit login

> One of the in-practice problems I've seen a lot of in Clojure is that people aren't sure how to get a REPL set up

The most common "problem" I've seen with people starting to learn Clojure, is that they try to use the REPL approach you'd use in Ruby, Python or NodeJS, namely writing and running small snippets in a standalone REPL prompt, in another window/pane, then copy-paste that into their editor when they're ready. Then repeat that process while working.

While what you actually want to do, is connect your editor to the REPL, put the REPL in the background then evaluate code with a keyboard shortcut from your editor, and see the results in your editor. Once you've taught this to people, their eyes open.

For vim/neovim users, Conjure is great at giving a nice environment quickly and easily. https://github.com/Olical/conjure

For Visual Studio Code, I've heard bunch of people having success with using Calva, but haven't used that myself a lot so can't say how nice it really is. https://github.com/BetterThanTomorrow/calva




> While what you actually want to do, is connect your editor to the REPL, put the REPL in the background then evaluate code with a keyboard shortcut from your editor, and see the results in your editor.

In Lisp I would use both. In some Lisp IDEs (MCL, LispWorks, SLIME), evaluating from the editor actually can queue up the form into a Listener (aka REPL) tool. MCL did this by default, LispWorks and SLIME have commands for that.


Then there is https://cursive-ide.com/ as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: