Download Mastering Clojure Macros: Write Cleaner, Faster, Smarter by Colin Jones PDF

By Colin Jones

Level up your abilities through profiting from Clojure's strong macro procedure. Macros make challenging issues attainable and general issues effortless. they are often tough to take advantage of, and this publication can help you deftly navigate the terrain. you will find the best way to write undemanding code that avoids duplication and clarifies your intentions. you will learn the way and why to jot down macros. you are going to learn how to realize events whilst utilizing a macro could (and wouldn't!) be worthwhile. and you can use macros to take away pointless code and construct new language features.

Clojure deals a few sharp instruments in its toolbox, and one of many sharpest is its macro process. This publication may help you write macros utilizing Clojure, and extra importantly, realize if you happen to could be utilizing macros within the first place.

The Lisp "code-as-data" philosophy supplies super benefits to macro authors and clients. you should use macros to guage code in different contexts, circulate computations to bring together time, and create attractive API layers. you don't want to attend at the Clojure language itself so as to add new positive factors, you are going to how you can enforce even the lowest-level positive factors as macros. you will step via consultant samples of ways to exploit macros in construction libraries and purposes, locate transparent info on how one can build macros, and study tips to steer clear of hindrances that frequently journey up macro amateurs.

Clojure macros are easier to take advantage of than metaprogramming positive factors in lots of different languages, yet they are varied adequate from general programming to provide demanding situations in their personal. Mastering Clojure Macros examines a few of these concerns, in addition to choices to macros the place they exist.

By the time you end this e-book, you can be considering like a macro professional.

What You Need:The e-book examples were constructed below Clojure 1.6.0, even though past and later types of Clojure may go to boot. you want to use Leiningen 2.x for you to stick with besides the examples that use exterior projects.

Show description

Read or Download Mastering Clojure Macros: Write Cleaner, Faster, Smarter Code PDF

Similar application development books

Python 3 - Intensivkurs: Projekte erfolgreich realisieren (Xpert.press) (German Edition)

Python ist eine vollwertige Programmiersprache, mit der sich auch größere Anwendungen entwickeln lassen. In den letzten Jahren hat sie an Beliebtheit gewonnen, und mit Python three steht eine stark erweiterte model zur Verfügung. In dem Band werden die Werkzeuge und Programmiermöglichkeiten praxisorientiert vorgestellt.

Aptana studio Beginner’s Guide

In DetailAptana Studio three is a strong internet improvement IDE in accordance with the Eclipse platform and gives many cutting edge applied sciences and contours for constructing potent, glossy hi-standard web-applications. Aptana has been round seeing that 2008 and it presents language help for HTML, CSS, JavaScript, Ruby, Rails, personal home page, Python, etc through the use of plugins.

Magento PHP Developer’s Guide

In DetailMagento has thoroughly reshaped the face of e-commerce when you consider that its release in 2008. Its progressive specialise in item orientated and EAV layout styles has allowed it to develop into the popular software for builders and outlets alike. "Magento personal home page Developer’s consultant" is an entire connection with Magento, permitting builders to appreciate its primary suggestions, and get them constructing and trying out Magento code.

Pro Couchbase Server

Seasoned Couchbase Server is a hands-on consultant for builders and directors who are looking to make the most of the ability and scalability of Couchbase Server of their purposes. This ebook takes you from the fundamentals of NoSQL database layout, via program improvement, to Couchbase Server management.

Extra resources for Mastering Clojure Macros: Write Cleaner, Faster, Smarter Code

Example text

Download PDF sample

Rated 4.16 of 5 – based on 16 votes