ClojureScript: Up and Running
Functional Programming for the Web
Publisher: O'Reilly Media
Released: October 2012
Pages: 116

Learn how to build complete client-side applications with ClojureScript, the Clojure language variant that compiles to optimized JavaScript. This hands-on introduction shows you how ClojureScript not only has similarities to JavaScript—without the flaws—but also supports the full semantics of its parent language. You’ll delve into ClojureScript’s immutable data structures, lazy sequences, first-class functions, macros, and support for JavaScript libraries.

No previous experience with Clojure or ClojureScript is necessary. If you’re familiar with JavaScript, HTML, CSS, and the DOM, you’ll quickly discover that ClojureScript has the same reach as JavaScript, but with more power.

  • Start writing ClojureScript code with the Leiningen build system
  • Learn how the ClojureScript compiler works to produce optimized JavaScript
  • Use JavaScript functions and libraries directly from ClojureScript code
  • Explore functions in Clojure’s sequence library such as map, reduce, and filter
  • Use macros to define new control structures or embed domain-specific languages
  • Compile manually or script your own workflow with ClojureScript’s compiler tools
  • Integrate ClojureScript with Clojure on the JVM to build powerful client-server applications
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyClojureScript: Up and Running
 
4.8

(based on 4 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Concise (4)
  • Easy to understand (3)

Cons

    Best Uses

        • Reviewer Profile:
        • Developer (4)

      Reviewed by 4 customers

      Sort by

      Displaying reviews 1-4

      Back to top

       
      5.0

      Excellent for clojurescript beginers

      By dpom

      from Romania

      About Me Developer

      Verified Buyer

      Pros

      • Concise
      • Easy to understand
      • Helpful examples

      Cons

      • Not comprehensive enough

      Best Uses

      • Novice

      Comments about oreilly ClojureScript: Up and Running:

      It is a good introductory book

      (1 of 1 customers found this review helpful)

       
      5.0

      Functional Programming for the Web

      By Przemysław

      from Kraków

      About Me Developer

      Verified Reviewer

      Pros

      • Accurate
      • Concise
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly ClojureScript: Up and Running:

        I've got previous experience with Clojure and I was really curious about this book. Authors did a great job to get ClojureScript up and running. Book is relatively short but it covers essential things about ClojureScript. The compilation process and use of Google Closure Compiler are well explained. Book also goes through basics of ClojureScript and authors point out some differences from Clojure. Authors shows tools/plugins which are useful in development process such as leiningen or REPLs (Clojure REPL, ClojureScript REPL or Browser REPL). ClojureScript: Up and Running is clearly & well written. I really enjoyed reading that book. I really recommend that book for programmers that have previous experience with JavaScript and functional programming (based on Lisp-like languages).

         
        4.0

        Rather interesting book

        By FunctionMan

        from USA

        About Me Developer

        Pros

        • Concise
        • Easy to understand

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly ClojureScript: Up and Running:

          If you're comfortable with JavaScript, and perhaps have some experience with a functional programming language such as F#, this book provides a nice introduction to ClojureScript.
          There are lots of small code snippets illustrating the points made in the tutorials.
          This book has definitely piqued my interest in ClojureScript and Clojure.

          It does have quite a few typos, but it is an early release, and that's to be expected.

          (4 of 4 customers found this review helpful)

           
          5.0

          Exceptionally clear writing

          By Mark Barton

          from Cary, NC

          About Me Developer

          Verified Reviewer

          Pros

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

          Cons

            Best Uses

              Comments about oreilly ClojureScript: Up and Running:

              "ClojureScript: Up and Running" is currently the only book available on ClojureScript, which is "a dialect of the Clojure programming language which compiles to JavaScript". It is a pleasant surprise to find that the first book on this topic is so clearly and carefully written. The book doesn't assume any knowledge of Clojure or ClojureScript. It does assume "a basic working knowledge of the core JavaScript language". The book is good because it is short. It focuses on essentials. The authors have obviously given careful thought to the minimum needed in order to get the reader "up and running", and the book is nicely organized around that aim. It also provides just enough history and background to answer the question, "Why ClojureScript?" The book offers a clear, simple, and very brief introduction to the Clojure language, upon which ClojureScript is based. There are several excellent books out there on the Clojure language, but they are generally more rigorous, and they intertwine the basic "how to" introduction with a deep discussion of the philosophy behind Clojure. In contrast, "ClojureScript Up and Running" chooses to focus on the essentials of the Clojure language, referring the reader to other sources for a deeper discussion. After reading this book, the reader will still need to study one of the Clojure books to gain familiarity with the idioms of Clojure.

              This very good book left me with one nagging question: How large is the intended audience for this book? It is targeted at those who do not yet know any Clojure, and who are trying out ClojureScript as a replacement for JavaScript. However, the author points out that a powerful selling point for Clojure -- avoiding concurrency problems -- is not applicable to ClojureScript because it always runs in a single-threaded JavaScript environment. The author does a good job of describing other virtues of Clojure and ClojureScript, apart from dealing with concurrency. However, it isn't clear to me that those other virtues alone will motivate lots of users to take on the twin challenges of learning a very different programming paradigm and also of dealing with extra debugging complexity in a language that gets compiled into another language. (But those who are willing to take on these two challenges will be grateful for this book!) I think that the most likely users of ClojureScript will instead be those who have already been won over to Clojure and who are now picking up ClojureScript. They will find the book valuable for its coverage of issues specific to ClojureScript. They won't really need the introduction to Clojure, which makes up a portion of the book, but they will still benefit from a quick read of that portion just because it is so well written.

              Displaying reviews 1-4

              Back to top

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