Hacker News new | ask | show | jobs
by didibus 1485 days ago
I think the tooling nowadays is pretty simple to setup, but the information out there doesn't speak to that new simple way, so everyone starting is following something that pushes them to outdated tooling.

Install Java:

    brew tap homebrew/cask-versions
    brew install --cask temurin17
Install Clojure:

    brew install clojure/tools/clojure
Type `clj` at the command line and play with Clojure!

Now install VSCode and get the Calva plugin for Clojure from the marketplace.

That's it. You'll have autocompletion, jump to definition, code formatting and highlighting, linting, support for editor integrated REPL, debugger, etc.

Then you can run:

    clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.4.9"}' :as new
And now you can create new projects from various templates using:

    clojure -Tnew app :name myusername/mynewapp
This creates a new basic application project for example. Open it in VSCode and you can connect a REPL to it and start working.