Learn the tricky corners of Clojure syntax, like for comprehensions and function definitions.
Screencasts, Whiteboards, and Slides produced to help you learn
Ever wonder how to read those destructuring forms? Do you want to know how to make your code clearer and shorter? Where can destructuring be used? And how do you construct each one? This course starts from the basics and works through all of the destructuring forms, ending with some examples and advice for using them.
A fun and gentle introduction to the Clojure language, functional programming, and data-drive programming, through the eyes of baking robot X5.
Small, precise guides to a particular feature.
Clojure let is used to define new variables in a local scope. This article describes a few things you probably know about let, and a few you don’t.
Curated selections of courses on a specific topic
Clojure can be an excellent language to learn programming. The following courses should set you on a good path for getting up to speed in Clojure. Be sure to click those checkmarks to track your progress. Start with the best introduction to Clojure out there. It gently guides you through the language with fun exercises. […]
If you’re coming to Clojure from an Object-Oriented Programming background, this page is for you. Be sure to click those checkmarks to track your progress. Start with the best introduction to Clojure out there. It gently guides you through the language with fun exercises. You’ll learn the syntax and the thought processes behind Clojure programming. […]
If you’re looking to watch absolutely all of the courses on this site, I’ve put together a suggested order. Start at the beginning and just watch everything straight through. Be sure to click those checkmarks to track your progress.
Parts of courses on specific topics
This lesson teaches the function syntax with minimalist examples. This lesson includes a video screencast. The video is 19 minutes long.
We go over some cases where destructuring is very useful. We also look at why we shouldn’t use it all the time.
Clojure, like Python and Haskell, have list comprehensions. You use the
for form. It’s a super useful and often underrated expression, and it’s often mistaken for a for loop.
We take a look at regular function arguments, how order matters, and the
& syntax for rest arguments.
Keyword arguments are very helpful to add to functions. In Clojure, they’re a special case of map destructuring.
Map destructuring is more complex than sequences, so we’ll do it in two parts. The most common way to use map destructuring is a shortcut called
PDFs, code, and other downloads to help you learn
Have you ever wondered what the symbols in Clojure macros do? I’m talking about `, ~, ~@, etc. This handy reference sheet tells you what they all do, when to use it, and shows examples. Never get lost in a macro again!
Guide to baking for the intrepid robot
How to install: Download the CSV file (click the thumbnail below). Install Anki. Run Anki. Click Import at the bottom of the window. Import the CSV file. Adjust the options like you see them below.
A printable PDF (double-sided) with the 100 most common Clojure expressions. One side has the function/macro, the other a quick explanation. This is for printing on Avery 5371 paper.
A printable PDF (double-sided) with the 100 most common Clojure expressions. One side has the function/macro, the other a quick explanation. This one has a grid for cutting by hand.