Clojure
Getting Started
- Follow Daniel Higginbotham’s book CLOJURE for the BRAVE and TRUE to learn the ultimate language and become a better programmer.
Important Commands
# Create a new clojure application
lein new app clojure-noob
cd clojure-noob
# Run the application
lein run
# Create a distributable JAR for the Java Virtual Machine
lein uberjar
# Run the JAR
java -jar target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
# Start the REPL - read eval print loop
lein repl
Language and API References
- Clojure.org - Main page for Clojure.
- Clojure Cheat Sheet - Overview of built-ins, data structures etc.
- ClojureScript Cheat Sheet - Cheat Sheet for ClojureScript.
- ClojureDocs - documentation and examples repository for Clojure.
Exercises Specifically for Clojure
- ClojureScript Koans - learn clojure from scratch by a series of interactive exercises in your web browser.
- 4ever-clojure - An interactive problem website for learning Clojure.
- GitHub: oxalorg / 4ever-clojure
- GitHub: 4clojure / 4clojure - Original 4clojure site can be self-hosted.
Interesting Clojure Projects
- SCI - Small Clojure Interpreter - limited dialect of Clojure for a single-purpose, scripted application.
References
The following list shows the tools and reading materials I have encountered while reading CLOJURE for the BRAVE and TRUE.
Tools
- sdkman: Leiningen - a leiningen sdk for installing with the sdkman package manager.
- Cursive - The Clojure(Script) IDE that understands your code - a plugin for JetBrains IntelliJ IDEA.
- Cursive: User Guide - Getting started with Cursive.
Reading Material
- Leiningen - the build system automating Clojure projects without setting your hair on fire.
- Clojure Documentation - community-driven documentation site for the Clojure programming language.