Hello Clojure

What is Clojure?

Clojure is a modern programming language. Depending on your skill level, you can create any type of software with Clojure. This includes games, web apps, mobile apps, and desktop applications.

The first step in programming Clojure is to install it and other things needed for creating Clojure programs.

At the bare minimum, you will need the Java JDK (such as OpenJDK or AdoptOpenJDK) installed; followed by Leiningen; and some kind of editor such as VS Code. Sometimes, it is also helpful to have the command line ‘clj’ tool installed, too. You can find instructions on installing the ‘clj’ command on the Clojure website.

Once you have Leiningen installed, open a terminal window and type lein repl . This will start what is called a REPL. (We’ll get into the REPL in another post.)

In the REPL type, (println "Hello Clojure!") . Press Enter, and the computer will print out “Hello Clojure!”

You have your first really short Clojure program running. Bask in the glory of the moment!

If you want to see a specific Clojure tutorial, please let me know on Parler.

Leave a Reply

Your email address will not be published. Required fields are marked *