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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access