Chapter 8. Clojure Programming
In the previous chapter, we covered how to program Clojure by entering code directly in its REPL. While this works well, even for smaller projects, having the code placed in multiple source files is a must. Writing projects is the main focus of this chapter, and we will use Eclipse IDE again for writing code, thanks to the Counterclockwise plugin that adds Clojure compatibility to Eclipse IDE. The most popular build tool for Clojure projects is called Leiningen, and we will use it a lot during the course of this chapter.
We will build two projects. One project will focus on monads, which are used a lot in functional programming languages. We will explore this subject by applying test-driven development. We will also create a very simple web application using Luminus, a popular micro web framework for Clojure. Here's a list of what we will cover in this chapter:
- The Counterclockwise plugin for Eclipse IDE
- Leiningen's build tool
- Creating executable programs in Clojure...