O'Reilly logo

Seven Web Frameworks in Seven Weeks by Frederic Daoud, Jack Moffitt

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

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 ...

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