O'Reilly logo

Web Development with Clojure by Dmitri Sotnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Upgrading to ClojureScript

Up to now, we’ve been using Clojure exclusively on the server, and plain old JavaScript for our client-side logic. ClojureScript is a dialect of Clojure that compiles to JavaScript. This allows us to use the same language for both the client and the server. Not only that, but it’s even possible to share code between the two.

Let’s look at why we might wish to use ClojureScript for front-end development. If you’ve worked with JavaScript you’ve probably noticed that it has many shortcomings. Let’s look at some of these and how ClojureScript addresses them.

JavaScript syntax is full of quirks and it’s easy to write code that looks like it’s doing one thing, but in fact does something else entirely. Equality checks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required