#Clojure Getting Started

7 messages · Page 1 of 1 (latest)

proper void
#

Just picked up Clojure for this month. Got stuck on the Hello-World exercise, "lein test" didn't work at the command line. Read the "Installing Clojure locally" and did the homebrew bit. "lein test" still didn't work. Figured out I needed "brew install leaningen". Should the "Installing Clojure locally" docs be updated to include Leiningen? The "Testing on the Clojure track" doesn't mention the dependency, either.

clever sluice
#

We made the docs go according to the Clojure CLI because it ships with Clojure and that way no other tool is needed. For testing, there's a :test alias that is used like this:

clj -X:test

We do include a Leiningen configuration for those already using it, but decided to keep the installation instructions simpler.

#

Now that I'm looking at the docs I'm seeing that some other things are out of date, particularly the Windows instructions, since Clojure now has an official MSI installer.

#

So as long as I'm making changes, I might reconsider and include Leiningen as well, because it continues to be used by many

proper void
#

Thx, @clever sluice . I mentioned it because the Hello World exercise specifically says to use 'lein test' under Running Tests on the web page. There's no mention of 'clj -X:test'. Being new to Clojure it was unneeded friction in getting started. https://exercism.org/tracks/clojure/exercises/hello-world

Exercism

Can you solve Hello World in Clojure? Improve your Clojure skills with support from our world-class team of mentors.

clever sluice
#

oh you know what, I wasn't even aware of that page, lol

proper void
#

no worries! I suppose we could also change the exercise instructions to call out 'clj -X:test' instead of lein.