Mastodon C advertises itself as a ‘Clojure shop’ when talking to clients and partners, but let’s delve a bit deeper into what this means and why we believe it’s a key advantage for us. Ultimately, it comes down to a simple idea:
“Simplicity is hard work. But, there’s a huge payoff. The person who has a genuinely simpler system – a system made out of genuinely simple parts, is going to be able to affect the greatest change with the least work. He’s going to kick your ass. He’s gonna spend more time simplifying things up front and in the long haul he’s gonna wipe the plate with you because he’ll have that ability to change things when you’re struggling to push
elephantsmastodons around.” – Rich Hickey, Creator of the Clojure programming language (edited for effect)
Clojure is a computer programming language that promotes simplicity, whilst simultaneously being incredibly powerful and broad. It hails from a family of languages known as LISPs (List Processor), which are famous for their distinctive, fully parenthesized Polish prefix notation. It looks a bit like this…
(require '[clojure.string :as string]) (defn say-hello [name] (->> name (string/capitalize) (println "Hello"))) #=> (say-name "archibald") "Hello Archibald"
Clojure is predominantly used as a ‘server’ language which means that it’s usually the workhorse at the bottom of a technology stack, doing all of the business logic, logging, management and logistics. This suits us quite nicely, as this is where most of the Mastodon C magic tends to happen – reading in data, crunching lots of numbers, managing distributed computations across the cloud. Having all of our solutions written in Clojure means that we significantly reduce the effect of “silo-ing” people into specific projects. One person can easily move between jobs and this is something we actually mandate as part of our support process.
Considering Mastodon C is already bursting with experienced Clojure developers, using ClojureScript for our frontend work is a total no-brainer, and of course comes with the added benefit that – once again – no one is left-behind when it comes to rolling up their sleeves and contributing to the code. There is no “server team” and “frontend team” as is so typical at most polyglot organisations – everyone does everything.
once more, with feeling
It’s important to note that although our preference lies firmly in Clojure and ClojureScript, we aren’t scared of cutting our teeth on other languages, especially if they are designed for and excel at a specific task – R is a good example of this. However, the benefits of working in a predominantly Clojure organisation are paying dividends for us:
- Expensive handoffs between teams and skill bottlenecks are reduced because anyone can work on anything, most of the time.
- Clojure can leverage a huge set of libraries from both its own ecosystem and also that of Java.
- The programs we write are simple, concise, easy to maintain and trivial to test; the bug count is low, the productivity is high.
- Our developers are happy and that counts for a lot!
- Simple Made Easy – Rich Hickey
- ClojureScript: Lisp’s Revenge – David Nolen
- Why Clojure? – Venantius
- Clojure Rationale
Share this article