Clojure Cookbook
Recipes for Functional Programming
Publisher: O'Reilly Media
Final Release Date: March 2014
Pages: 476

With more than 150 detailed recipes, this cookbook shows experienced Clojure developers how to solve a variety of programming tasks with this JVM language. The solutions cover everything from building dynamic websites and working with databases to network communication, cloud computing, and advanced testing strategies. And more than 60 of the world’s best Clojurians contributed recipes.

Each recipe includes code that you can use right away, along with a discussion on how and why the solution works, so you can adapt these patterns, approaches, and techniques to situations not specifically covered in this cookbook.

  • Master built-in primitive and composite data structures
  • Create, develop and publish libraries, using the Leiningen tool
  • Interact with the local computer that’s running your application
  • Manage network communication protocols and libraries
  • Use techniques for connecting to and using a variety of databases
  • Build and maintain dynamic websites, using the Ring HTTP server library
  • Tackle application tasks such as packaging, distributing, profiling, and logging
  • Take on cloud computing and heavyweight distributed data crunching
  • Dive into unit, integration, simulation, and property-based testing
Clojure Cookbook is a collaborative project with contributions from some of the world’s best Clojurians, whose backgrounds range from aerospace to social media, banking to robotics, AI research to e-commerce.
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyClojure Cookbook
 
4.2

(based on 6 reviews)

Ratings Distribution

  • 5 Stars

     

    (2)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (6)
  • Concise (5)
  • Accurate (4)
  • Easy to understand (4)

Cons

    Best Uses

    • Intermediate (6)
    • Novice (3)
      • Reviewer Profile:
      • Developer (4)

    Reviewed by 6 customers

    Sort by

    Displaying reviews 1-6

    Back to top

     
    4.0

    Diverse and usable examples

    By freeduck

    from Copenhagen, Denmark

    About Me Developer

    Verified Buyer

    Pros

    • Concise
    • Easy to understand
    • Helpful examples

    Cons

    • Not comprehensive enough

    Best Uses

    • Intermediate
    • Novice

    Comments about oreilly Clojure Cookbook:

    Lots of examples from a versatile set domains.

    Each example has a nice discussion section which elaborate on the solution, and gives pointers for further reading. This is really helpful.

    Unfortunately the book misses some examples on debugging.

    This book makes it easy to get started with clojure, but there is no help if you get stuck.

    (1 of 1 customers found this review helpful)

     
    3.0

    Uneven, but handy overview

    By Konrad Garus

    from Krakow, Poland

    Verified Reviewer

    Pros

    • Concise
    • Helpful examples

    Cons

    • Not comprehensive enough
    • Too basic

    Best Uses

    • Intermediate

    Comments about oreilly Clojure Cookbook:

    It starts with a detailed walkthrough of primitive and collection manipulations. Then it includes recipes on basic development tasks (REPL, using docs, running programs etc.), I/O, databases (two recipes on SQL, one for each of a handful of NoSQL databases, plus quite a few on Datomic), web applications with Ring, performance optimization, distributed computing (mostly Cascalog, some Storm) and testing.

    In my opinion the book is very uneven. It's very detailed about the primitives and basic collections, but at the same time it doesn't do justice to state management (atoms, refs, agents), data types or concurrency. Yet it has two chapters on building a red-black tree. It is very detailed about Datomic, but barely scratches the surface of much more common tools like core.async, core.logic or core.match. It does not include anything about graphics or ClojureScript.

    In short, it sometimes pays much attention to some uncommon problems or tools, while giving too little information on more popular pieces. I think the target audience is somewhere around intermediate. I don't think it's a good way to get started with the language, but it is a decent, handy survey of some areas of the landscape.

     
    4.0

    A survey course of the Clojure ecosystem

    By Gordon, Clojure apprentice.

    from Washington, DC

    About Me Developer

    Verified Buyer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

    • Occasionally Too Cursory

    Best Uses

    • Intermediate
    • Novice

    Comments about oreilly Clojure Cookbook:

    This book provides a great overview of what's available to Clojure developers. The book wastes no time in convincing you of Clojure's efficacy or value, instead diving headlong into bite-sized morsels that range between "head retaining" gotchas to full-on library introductions. The Pros are many: well-indexed, quite comprehensive, and easily digestible. The cons are few, but one is worth mentioning: Certain recipes fall flat. Perhaps it was a subject not suitable for the format, but occasionally I found myself taking away only that a library existed. For example, the section on Liberator, a REST service library, does not manage to mention any of it's RESTful features. Compare that to the brief, but well-executed section on RabbitMQ. Here, the author manages to relay the core concepts of AMQP 0-9-1 and get you creating queues, sending and receiving messages in Clojure. On the whole though, this collection of tips and tutorials is a fun read, and sits nice on your desk as a quick reference. I would recommend it to novice and intermediate Clojure devs, however, experts will find most material too basic.

     
    5.0

    Great book for all clojurists

    By Esdee

    from Barrie, Ont, CA

    About Me Developer

    Verified Buyer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly Clojure Cookbook:

      Useful recipes in a large number of areas ranging from java interop to web dev

       
      4.0

      Good. Needs a part 2.

      By hellonico

      from Tokyo

      About Me Developer

      Verified Buyer

      Pros

      • Accurate
      • Easy to understand
      • Helpful examples

      Cons

      • Too basic

      Best Uses

      • Intermediate

      Comments about oreilly Clojure Cookbook:

      This cookbook is a great step forward from where the other books stop.
      I would recommend it to people starting clojure.

      However, if you're into Clojure already and you've purchased some of the existing literature, this may be a bit redundant.

      I do love the clearness, and the easyness of understanding of each chapter and samples.

      (4 of 4 customers found this review helpful)

       
      5.0

      Excellent reference book

      By Nitin

      from India

      About Me Designer

      Pros

      • Accurate
      • Concise
      • Helpful examples

      Cons

        Best Uses

        • Intermediate

        Comments about oreilly Clojure Cookbook:

        This book could be named "How to do it in Clojure". It is about solving common tasks a developer may encounter while using Clojure, covering a wide range of topics from manipulating simple data to interacting with databases to distributed computation.
        It should be stated rather clearly that this book aims to solve specific problems using Clojure, and does not touch upon the semantics of Clojure itself. If you want to learn Clojure, I would recommend O'Reillys Programming Clojure or Pragmatic's book. But if you want to know how to apply Clojure to perform common tasks, such as reading/writing to files, using databases or using sockets, this book is really helpful, much like the book The Rails 4 Way is for Rails - a general how-to-do-it-in-Clojure guide.
        The book covers a vast array of topics - general computing, I/O, networking, databases and distributed computing. The authors cover each topic in detail, covering both Clojure and Java API wherever applicable. Lein is covered in detail. Libraries for almost each of the above topics are discussed - though not in detail, enough information is provided to complete the task at hand.
        This book would be useful mostly for intermediate developers who have some idea about Clojure. I would certainly recommend this book to any serious Clojure developer.

        Displaying reviews 1-6

        Back to top

         
        Buy 2 Get 1 Free Free Shipping Guarantee
        Buying Options
        Immediate Access - Go Digital what's this?
        Ebook: $37.99
        Formats:  DAISY, ePub, Mobi, PDF
        Print & Ebook: $49.49
        Print: $44.99