Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does one not use leiningen? Do you just substitute lein for the other build tool provided by cognitect? All the tutorials I've seen have you jack-in to a lein REPL. I guess I could just use the jar file from the download directly as my REPL? I wish more tutorials started that way so I could learn without all the tools that I don't need at this point.

Thanks for helping point this out. Cursive has a trial license and is pretty cheap, but it is still annoying to get a license to something you might not need in my organization if others aren't already using it (probably easier to get visual studio for over $1k than $100 cursive license). VS Code asked me for the leiningen REPL path and I just gave up at that point for the night. I wish the Clojure download zip came with a very simple IDE like Dr. Racket or the GroovyConsole with line wrap, parenthesis matching/highlighting and a pane for the file and REPL and some pre- loaded tutorials. I would have no excuses.



If don't like or do not want InteliJ with Cursive or vanilla Emacs or VSCode, you can still use Vim, Eclipse, Atom, Spacemacs. The days when Clojure could be used only in Emacs are long gone.


Here are instructions for running clojure directly: JVM, Clojure.jar and nothing else:

https://clojure.org/guides/getting_started#_other_ways_to_ru...

You can also use boot, or if you’re using clojurescript, there are other non-leiningen options too. But really, leiningen is easy — you only need to know where in the project file to put dependencies (if you’ve ever used any other build tool, you can do this) and then run `lein repl` or `lein run` or `lein test` and to package a jar: `lein uberjar`. You don’t need to know anything else to get started.

Cursive is free for non-commercial use. If you just want a simple editor to get started, check out Nightcode or Nightlight.

https://sekao.net/nightcode/

https://sekao.net/nightlight/




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

Search: