Clojure Recipes

  • ISBN13:


  • ISBN10:


  • Edition: 1st
  • Format: Paperback
  • Copyright: 2015-10-13
  • Publisher: Addison-Wesley Professional
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $1.60
  • eBook
    Add to Cart


Supplemental Materials

What is included with this book?

  • The eBook copy of this book is not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.


“There’s something for everyone here. . . . You can pick up and read this book and build an industry-standard system in a weekend: It has everything you need to get started with a new project. I also found it helpful in reviewing the structure of existing projects.”

—Timothy Pratley, developer 

Developers are discovering the exceptional power of Clojure’s functional programming model to quickly solve problems in domains ranging from social networking to Big Data. Clojure is fast and efficient—ideal for rapid prototyping and lean development. And it is highly expressive and extremely extensible, which makes Clojure one of today’s leading tools for software innovation. Since it targets the Java Virtual Machine, Clojure also leverages the Java platform’s maturity and enormous ecosystem.


Clojure Recipes is a wide-ranging, up-to-date “code recipe book” for this increasingly popular language. With practical and self-contained examples, author Julian Gamble illuminates Clojure’s key features and best practices, showing how to solve real-world problems one step at a time. Focusing on Clojure 1.7 and higher, Gamble fully reflects recent enhancements that ensure you’re getting the most up-to-date code for your project.


Gamble first walks you through the essential steps required to set up your Clojure development environment, from setting up the Leiningen build tool to packaging Clojure for Java EE environments. He then shows you how to build both basic and advanced REST servers, before turning to a wide range of increasingly sophisticated applications.


In this book you will find

  • Innovative Clojure code for diverse web, security, administration, and development tasks, from log reading and app monitoring to software testing
  • Detailed instructions for using concurrency primitives, writing new DSLs, simplifying cloud database development, and more
  • “Learn by doing” projects, which offer practical experience with Clojurescript, Storm, Pedestal, Datomic, and other advanced tools
  • Coverage of using Clojure with Cascalog 2.0 to write complex Hadoop queries with minimal code 

The breadth and quality of Gamble’s examples make Clojure Recipes uniquely valuable both to developers who are exploring Clojure for the first time and to those already using it in production.

Author Biography

Julian Gamble (Sydney, Australia) is a software engineer who has worked in the financial services industry for more than a decade. When he's not enabling billions of dollars to orbit the globe, he writes and presents on all things software related at juliangamble.com/blog.

Table of Contents

Part 1. Using Clojure Sample Projects
1. Setting Up Your IDE
2. Create Your Database Schema and Populate Your Database
3. Adding User Authentication to Your Site
4. Handle Exceptions On Your Website
5. Package Your Website As a War File
6. Add Email Notifications to Your Website
7. Add RSS to Your Website
8. Add a Twitter Feed from Your Website

9. Deploy a Website to Heroku

10. Build a Basic Clojurescript Website
11. Setting Up An Asset Pipeline for Clojurescript Assets
Part 2.Things That Clojure Can Do for You
12. Abstract Boilerplate Code Into a Macro
13. Build a Simple DS
14. Generate Test Data Using Core Logic
15. Build a Scheduler Using Core.Logic
16. Getting Started With Datomic
17. Loading Up Your Clojure GIT Project in Codeq Using Dataomic
Part 3. Getting Clojure Into Your Workplace
18. Build a Log Reader
19. Build a Web App Monitor
20. Build a Web Testing Suite
21. Build a Customised Ant Task
22. Doing a Live Coding Presentation Entirely in the Repl
A. Why Clojure?
B. Build a High Performance Concurrency Solution
C. Extending Ring With Your Own Plugin
D. Examine Your Running App With the REP
E. Debugging Techniques
F. Debugging Macros


Rewards Program

Write a Review