O'Reilly logo

Clojure Applied by Alex Miller, Ben Vandgrift

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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!

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required