Clojure is a dialect of the Lisp programming language. It’s a well-rounded language. It offers broad library support and runs on multiple operating systems.
Clojure is a dynamic functional general purpose programming language that runs on the Java platform, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multi-threaded programming. Clojure features a rich set of immutable, persistent data structures, first-class functions and dynamic typing. Clojure programs are composed of expressions and written in terms of abstractions.
By compiling into JVM bytecode, Clojure applications can be easily packaged and deployed to JVMs and application servers without added complexity. The language also provides macros which make it simple to use existing Java APIs. Clojure’s data structures all implement standard Java Interfaces, making it easy to run code implemented in Clojure from Java.
There’s lots of other good reasons to learn Clojure. It offers a modern take on Lisp. There’s an excellent parser library, and a fully featured logic engine. In Clojure, immutability is the default. Once an object or data structure is created, it cannot be changed. There are no variables.
Clojure currently ranks 46th in the TIOBE Index.
Your starting point to learn Clojure is the official documentation. But here’s 8 free books that will help you master this language.
1. Clojure Cookbook by Luke VanderHart & Ryan Neufeld
Clojure Cookbook is a book you’ll definitely want to read if you’re interested in learning how to program in Clojure. The book goes far beyond teaching this offering you sage advice how to use the language and its many common libraries.
You’ll learn a lot more than Clojure syntax and semantics. There’s lots of annotated example code with good analysis and concise explanation.
The book doubles as a reference guide and a book to unravel the mysteries of the language.
Grab the book from https://clojure-cookbook.com/. There’s also a GitHub repository.
2. Clojure for the Brave and True by Daniel Higginbotham
This is another exceptional book that’s available to read online. But I recommend you buy a printed copy or an ebook to support the author.
Clojure for the Brave and True offers a “dessert-first” approach: you’ll start playing with real programs immediately, as you steadily acclimate to the abstract but powerful features of Lisp and functional programming. Inside you’ll find an offbeat, practical guide to Clojure, filled with quirky sample programs that catch cheese thieves and track glittery vampires.
Clojure for the Brave and True assumes no prior experience with Clojure, the Java Virtual Machine, or functional programming. Start reading at https://www.braveclojure.com/clojure-for-the-brave-and-true/.
3. Clojure from the ground up by Kyle Kingsbury
Clojure from the ground up is a good introduction to learn Clojure.
It aims to introduce newcomers and experienced programmers alike to the beauty of functional programming, starting with the simplest building blocks of software.
Non-commercial re-use with attribution is welcomed by the author.
Kyle is the developer of the Riemann monitoring system and Jepsen, the latter improves the safety of distributed databases, queues, consensus systems, etc.
Read the series at https://aphyr.com/tags/Clojure-from-the-ground-up.
4. Full Stack Clojure by Matt Makai
Full Stack Clojure is an open book that explains each Clojure web application stack layer and provides the best web resources for those topics.
The material covers web frameworks, Compojure, deployment, servers, platform-as-a-service and more.
Read this guide at https://www.fullstackclojure.com/. There’s also a GitHub repository at https://github.com/mattmakai/fullstackclojure.com.
Next page: Page 2 – A Brief Beginner’s Guide To Clojure and more books
Pages in this article:
Page 1 – Clojure Cookbook and more books
Page 2 – A Brief Beginner’s Guide To Clojure and more books
All books in this series:
Free Programming Books | |
---|---|
Java | General-purpose, concurrent, class-based, object-oriented, high-level language |
C | General-purpose, procedural, portable, high-level language |
Python | General-purpose, structured, powerful language |
C++ | General-purpose, portable, free-form, multi-paradigm language |
C# | Combines the power and flexibility of C++ with the simplicity of Visual Basic |
JavaScript | Interpreted, prototype-based, scripting language |
PHP | PHP has been at the helm of the web for many years |
HTML | HyperText Markup Language |
SQL | Access and manipulate data held in a relational database management system |
Ruby | General purpose, scripting, structured, flexible, fully object-oriented language |
Assembly | As close to writing machine code without writing in pure hexadecimal |
Swift | Powerful and intuitive general-purpose programming language |
Groovy | Powerful, optionally typed and dynamic language |
Go | Compiled, statically typed programming language |
Pascal | Imperative and procedural language designed in the late 1960s |
Perl | High-level, general-purpose, interpreted, scripting, dynamic language |
R | De facto standard among statisticians and data analysts |
COBOL | Common Business-Oriented Language |
Scala | Modern, object-functional, multi-paradigm, Java-based language |
Fortran | The first high-level language, using the first compiler |
Scratch | Visual programming language designed for 8-16 year-old children |
Lua | Designed as an embeddable scripting language |
Logo | Dialect of Lisp that features interactivity, modularity, extensibility |
Rust | Ideal for systems, embedded, and other performance critical code |
Lisp | Unique features - excellent to study programming constructs |
Ada | ALGOL-like programming language, extended from Pascal and other languages |
Haskell | Standardized, general-purpose, polymorphically, statically typed language |
Scheme | A general-purpose, functional language descended from Lisp and Algol |
Prolog | A general purpose, declarative, logic programming language |
Forth | Imperative stack-based programming language |
Clojure | Dialect of the Lisp programming language |
Julia | High-level, high-performance language for technical computing |
Awk | Versatile language designed for pattern scanning and processing language |
CoffeeScript | Transcompiles into JavaScript inspired by Ruby, Python and Haskell |
BASIC | Beginner’s All-purpose Symbolic Instruction Code |
Erlang | General-purpose, concurrent, declarative, functional language |
VimL | Powerful scripting language of the Vim editor |
OCaml | The main implementation of the Caml language |
ECMAScript | Best known as the language embedded in web browsers |
Bash | Shell and command language; popular both as a shell and a scripting language |
LaTeX | Professional document preparation system and document markup language |
TeX | Markup and programming language - create professional quality typeset text |
Arduino | Inexpensive, flexible, open source microcontroller platform |
TypeScript | Strict syntactical superset of JavaScript adding optional static typing |
Elixir | Relatively new functional language running on the Erlang virtual machine |
F# | Uses functional, imperative, and object-oriented programming methods |
Tcl | Dynamic language based on concepts of Lisp, C, and Unix shells |
Factor | Dynamic stack-based programming language |
Eiffel | Object-oriented language designed by Bertrand Meyer |
Agda | Dependently typed functional language based on intuitionistic Type Theory |
Icon | Wide variety of features for processing and presenting symbolic data |
XML | Rules for defining semantic tags describing structure ad meaning |
Vala | Object-oriented language, syntactically similar to C# |
Standard ML | General-purpose functional language characterized as "Lisp with types" |
D | General-purpose systems programming language with a C-like syntax |
Dart | Client-optimized language for fast apps on multiple platforms |
Markdown | Plain text formatting syntax designed to be easy-to-read and easy-to-write |
Kotlin | More modern version of Java |
Objective-C | Object-oriented language that adds Smalltalk-style messaging to C |
PureScript | Small strongly, statically typed language compiling to JavaScript |
ClojureScript | Compiler for Clojure that targets JavaScript |
VHDL | Hardware description language used in electronic design automation |