Day 2: Patterns of Bricks

Master LEGO builders have internalized an enormous amount of architectural patterns that turn simple-looking bricks into specialized constructions. Certain bricks allow you to build sideways; well-placed hinges create off-axis surfaces; and novel uses of normal bricks add visual interest to a model. Clojure is a language of simple bricks that can be arranged into powerful patterns, and these patterns help you construct powerful web applications.

Let’s put some of Clojure’s common patterns to use to build the public API for Zap.

Defining the API

Before we build the API, we should have some idea of what it will do. We’ll assume you’ve got some experience using or creating RESTful web APIs so that we can get straight ...

Get Seven Web Frameworks in Seven Weeks 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.