Chapter 1Model Your Domain

Data is the bedrock of our programs. It’s what we build everything else on, so it’s the first thing we consider when developing an application. Clojure makes data immutable and stable while exposing it for generic access. This makes code simpler, easier to reason about, and more concise.

Clojure has a great set of tools for representing any domain as data, but sometimes it’s not clear how to get from a block of stone to a finished sculpture. We’re going to show you how to apply a range of techniques—from basic to advanced—for creating the best structure for your data.

Pick up your chisels—we’ve got some data sculpting to do!

Get Clojure Applied now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.