deftype vs defrecord

March 03, 2016
There are two commonly used ways to create new data types in Clojure, deftype and defrecord. They are similar but are intended to be used in two distinct use cases. deftype is for programming constructs and defrecord is for domain constructs.

What are macros?

March 03, 2016
Macros are one of the most talked about features of Lisp. They are a powerful way to extend the language without modifying the compiler.

Locks vs Concurrency Primitives

February 29, 2016
Many people have asked me why Clojure has concurrency primitives. Aren't locks good enough? A humorous metaphor is elaborated.

All about clojure.set

February 29, 2016
clojure.set is part of the standard library that comes with Clojure. It has functions for doing set operations and relational algebra.

What is Clojure?

February 27, 2016
Clojure is a general purpose programming language designed for the fast-approaching future.

How can more layers be more efficient?

February 20, 2016
It's common that adding more layers of abstraction or indirection will make things slower. However, React and ClojureScript make web pages faster than doing it by hand -- essentially programming the bare web. The lesson is that if you choose your layers well, they can actually make your system faster.

Reasoning About Code

February 20, 2016
Functional programmers often use the term "reason about code". It's not very well defined generally, but I use it myself to refer to our ability to use our real-world intuition in our own code.

Immutable Paper

February 10, 2016
Immutable data appear to contradict our observations of the real world. Things in the world are mutable, so shouldn't our data be mutable, too? It may be counterintuitive, but immutable data does a better job of modeling many of our expectations of the real world.

Composable parts

February 08, 2016
Composition is an important idea in programming, and Functional Programming brings it to the forefront. But what does it mean to say things are composable?

Recommendations for Next-Level Clojure

January 24, 2016
There are many classics of functional programming that can help you take your thinking to the next level. My recommendations are for making you think in a new way.