Learn how to solve problems using Clojure or ClojureScript and become a confident functional programmer with the help of engaging activities and challenging projects
Key Features:
- Master the tools and patterns of the Clojure and ClojureScript ecosystems
- Learn the fundamentals of functional programming and immutability
- Apply your skills practically by developing a range of scalable applications
Book Description:
The Clojure Workshop is a step-by-step guide to Clojure and ClojureScript, designed to quickly get you up and running as a confident, knowledgeable developer.
Because of the functional nature of the language, Clojure programming is quite different to what many developers will have experienced. As hosted languages, Clojure and ClojureScript can also be daunting for newcomers because of complexities in the tooling and the challenge of interacting with the host platforms. To help you overcome these barriers, this book adopts a practical approach. Every chapter is centered around building something.
As you progress through the book, you will progressively develop the 'muscle memory' that will make you a productive Clojure programmer, and help you see the world through the concepts of functional programming. You will also gain familiarity with common idioms and patterns, as well as exposure to some of the most widely used libraries.
Unlike many Clojure books, this Workshop will include significant coverage of both Clojure and ClojureScript. This makes it useful no matter your goal or preferred platform, and provides a fresh perspective on the hosted nature of the language.
By the end of this book, you'll have the knowledge, skills and confidence to creatively tackle your own ambitious projects with Clojure and ClojureScript.
What You Will Learn:
- Write idiomatic code with Clojure and ClojureScript
- Understand and use common patterns and best practices
- Experiment with code and interact with programs using the REPL
- Learn the fundamentals of functional programming and immutability
- Master concepts including mapping, filtering, reducing and recursion
- Structure and build your code using namespaces and Leiningen
- Write unit tests to validate application behavior
- Simplify your code and improve efficiency with macros
Who this book is for:
The Clojure Workshop is for anyone who is curious about functional programming and wants to get started learning Clojure or ClojureScript. Prior experience of another programming language, such as Java or JavaScript, is recommended, and will help you grasp the concepts covered in this book more easily.