Clojure's most important lesson
Tags: programming, clojure
Published: 2017-07-26 17:15:31

---
published: true
title: Clojure's most important lesson
tags: programming,Clojure
description: Clojure has a lot of important and unique lessons to teach, but which one is the most important?
cover_image: http://danlebrero.com/images/blog/clojure-lesson.jpg
canonical_url: http://danlebrero.com/2017/05/24/clojure-most-important-lesson/
---

*This article originally appeared on [my blog](http://danlebrero.com/2017/05/24/clojure-most-important-lesson/)*

Any programming language that you learn will hopefully teach you new techniques and ways of solving problems.
 
In the case of Clojure, it has taught me how great immutability is, the difference between [simple and easy](https://www.infoq.com/presentations/Simple-Made-Easy-QCon-London-2012), [the value of values](https://www.youtube.com/watch?v=-6BsiVyC1kM), the power of [the REPL](http://danlebrero.com/2016/10/22/repl-driven-development-voxxed-days-belgrade-2016-video/) and [macros](https://github.com/clojure/core.async), the trade-off of dynamic typing, and the beauty behind all those parentheses.
 
Also, being so different, it has allowed me to reconsider a lot of common wisdom, resulting in heretical thoughts about global state, dependency injection, encapsulation, testing, types and such.
 
However, the single most surprising lesson has been how close-minded I had been at the mere idea of it, how biased I was, how I would immediately dismiss it and mock it, and how now, I will sing its praises. 
 
If you had come and told me five years ago about a dynamically typed (what?? I am a proper engineer! Static typing is the only way to go!) Lisp ([parenthesis make your code unreadable](https://dev.to/danlebrero/java-maybe-verbose-but-who-cares)!) where everything is immutable by default (surely very slow!!) and where you just work with maps of maps ([unmaintainable and error prone](https://dev.to/danlebrero/the-broken-promise-of-static-typing)!), I would have laughed at you.
 
How blind I was? How many other great things I have missed because of my cognitive bias? How about you?
 
I encourage you to go and learn [Prolog](https://www.youtube.com/watch?v=G_eYTctGZw8), look at [Shen](http://shenlanguage.org), play around with [Bloom](http://bloom-lang.net), [Scala](http://www.scala-lang.org), [Kotlin](http://kotlinlang.org), [Haskell](https://www.haskell.org), [Frege](https://github.com/Frege/frege), [Go](https://golang.org), [Erlang](http://www.erlang.org), [Elixir](https://elixir-lang.org), [Idris](https://www.idris-lang.org) ... there are plenty to choose from.
 
But pick and learn something that is really different from what you are doing now or something that you have dismissed as silly before. That can even be Java or JavaScript.  
 
Maybe you will not like everything that you see, but enjoy the journey, be open minded, and don't be afraid to admit that maybe some of the stuff on the other side of the fence is cool, interesting or even better.
 
I leave you with a quote:
 
>[A language that doesn't affect the way you think about programming, is not worth knowing.](http://pu.inf.uni-tuebingen.de/users/klaeren/epigrams.html)
<cite>Alan Perlis, Epigrams on Programming.</cite>

Clojure, thank you.