r/Clojure • • Jul 31 '21

6 years of professional clojure

I've been working with clojure professionally for the last 6 years and I've written a blog post concluding my thoughts of clojure as a programming language and the challenges of building an engineering team based on clojure as its main tool

would be more than happy to receive feedback and alternate opinions

https://engineering.nanit.com/6-years-of-professional-clojure-2b61cb6c1983

84 Upvotes

15 comments sorted by

15

u/jayceedenton Jul 31 '21

I think one thing to bear in mind is that over the last few years, demand for software engineers has continued to outpace supply. This is affecting most parts of the industry, no matter what the language or technology stack. There's a risk here that everyone using interesting and effective new languages or tools immediately blames these for their difficult hiring. Believe me, Java shops are struggling to find good people to hire too.

Another factor to consider is that sometimes using Clojure, Scala, Haskell, Kotlin, etc marks your team out in a crowded space and sends good signals to the engineers you want to attract. It shows that you've taken some real, demonstrable steps to examine the way you work and choose 'better' tools. When there's a lot of competition to hire, signals like this will really help.

One great thing I've found about Clojure is that it is so accessible, and (IMO) reveals its benefits so quickly. New joiners can learn Clojure quickly, and most who pick it up end up loving it. I've worked in organisations using Scala where a small proportion of engineers really loved the pure, typed FP; but newcomers had a steep learning curve to get past, then around half of those effectively tolerated it from then on, rather than enjoying it.

10

u/erez-r Jul 31 '21

I agree that hiring is an industry wide problem and that Clojure is accessible and easy to learn as I also stated in my article.

I do think that Clojure makes hiring more challenging than it is with other languages, just for its lack of popularity and I'll try to explain with an hypothetical story:

I'm a software engineer and I've worked 6 years with Clojure. This is the language I feel most productive with and would love practicing Clojure in any future job I'll have. Of course if my career leads me to an interesting position in an organization that does not use Clojure I will consider it but Clojure is a main factor for me as I feel comfortable with it and love its concepts.

Now take Clojure and replace it with Golang, nodejs, python etc

What I am trying to say is that many engineers learn a language and feel productive and comfortable with it and would love taking their experience and knowledge in that language further in their career. For you and me it is Clojure but for 99% of the engineers population it isn't.

So the talent pool for Clojure barely exists and engineers proficient with other languages might prefer other job opportunities that fit their desired language better and I totally understand them.

The fact is, I get many candidates with nodejs , java, golang, python and even ruby experience, but almost none of them have Clojure experience and most of them don't even recognize the name as a programming language.

I don't want it to sound like a rant but this is my experience hiring for my team.

5

u/jayceedenton Jul 31 '21

Yes, I agree it will certainly put some people off. Having said that, a lot of people are actually desperate to be able to use a language like Clojure in their day-job, even though they're already highly proficient with Java.

I think your blog post is fair and thoughtful btw, with a lot of really good points. I just wanted to throw in a different perspective. There are many explanations (all true to some extent I expect), however it has gotten harder to hire across the board and it would be a real shame if we threw away all exciting tech because of it.

I really like your point about it being harder to bring in engineers that already have a lot of Clojure experience, and how this makes it harder to bring fresh Clojure ideas and techniques into the organisation.

2

u/_marciol Aug 01 '21

It's a pretty interesting problem. I, for instance, have been searching for a Clojure position after some time as a Manager of a team that used Clojure, so even without direct experience programming Clojure on a daily basis, I can not only use it, but devise what is a good or not good use of it in terms of tools, idioms, etc, but I don't know if it's enough to get hired by one of the few Clojure companies.

As I already have 3 years of experience using Elixir full time, I'm targeting also Elixir right now, it's a sort of acceptable Clojure, but with a lot more job offers which make it possible to get more interesting opportunities than what is available with Clojure.

It's sad because Clojure simplicity spoiled me, but I need to think about a lot of other things and unfortunately, I have been luckier passing the first phase of interviews with Elixir than Clojure so seems that my next job will be to work with Elixir and not Clojure.

11

u/seancorfield Jul 31 '21

We definitely found that once we started posting job reqs that said we were using Clojure, we got a different type of candidate applying and we didn't have to weed out as many unsuitable resumes as before. Yes, there are fewer candidates but they tend to be more interesting.

3

u/cbleslie Aug 03 '21 edited Sep 12 '25

makeshift crush childlike wise bake squash support languid dam direction

This post was mass deleted and anonymized with Redact

2

u/NoBrainSkull Jul 31 '21

Great post ! Thanks for sharing your experience with us. Do you have any public git repository of a typical closure project ? I'm curious about how you integrate outside world information into your pure functions.

2

u/erez-r Jul 31 '21

Unfortunately there is no public git repo I can share with you, but if you can be more specific with your question I'll gladly share our knowledge

1

u/NoBrainSkull Aug 01 '21

Like if your app receive an http query requesting some computed data you need to fetch from a database. Both query handling and database fetching are impure whereas every other step should be pure, right ?

  1. To pass you http query arguments (a simple dictionary) to the first pure function of your pipeline, do you need to validate what keys and values are in your dictionary? How do you handle malformed queries ?

  2. Do you also need to validate data coming from the database in the same regard?

  3. What about controlling logic ? Since calling an impure function make the caller impure, how much do you manage to keep pure ?

I have the feeling I see the huge advantage of having mostly pure functions in a code base but I miss the practical techniques to achieve it on a daily basis.

Hope that's not to much question :D !

2

u/erez-r Aug 01 '21
  1. we use http://clojurevalidations.info/ for request validation

  2. we don't really validate data coming in from the database - I can't think of a good reason to do so

  3. impurity is a part of the world and you have to handle it somewhere in your code. if your controller needs to read data from an external source there's no way to avoid it. I think that clojure minimizes impurity in the code base by relying on immutable values (so changing state is rare) and leaving it only for the cases that it is unavoidable like reading from a socket or a database.

11

u/[deleted] Jul 31 '21

Recruiting and building engineering teams of Clojure engineers is
challenging compared to other programming languages due to the lack of
its popularity and the absence of a large pool of experienced engineers

I often wonder about comments like these, I'm a clojure programmer, quite a long time.. but often times I run into clojure jobs not wanting to pay what I make doing C#, which I'll admit is quite a bit.. but it's not like we aren't out there..

8

u/jacksonbenete Jul 31 '21

What bothers me is the absence of experienced engineers and the absence of companies willing to give non-experienced engineers experience, so they can solve their own demand.

2

u/[deleted] Jul 31 '21

good point

3

u/gleenn Jul 31 '21

Excellent article. I do think the hiring problem is an interesting one. I recently started managing a new hire who has been learning Clojure and they seem to love it. I agree with other commenters here that likely a difficulty in hiring is probably industry-wide and somewhat language-agnostic.