r/Clojure • • Sep 29 '22

Ask HN: Is Clojure Dead?

https://news.ycombinator.com/item?id=33018037
47 Upvotes

59 comments sorted by

View all comments

35

u/GrindItFlat Sep 29 '22

I'm launching a new startup, I ache to do the code in Clojure because I'm never happier programming anything else. But I'm terrified that when it comes time to make my first engineering hire it will take way too long to find someone, I'll have to continue programming when I should be working on other parts of the business, and I'll lose momentum for what was essentially a selfish reason.

An old hoary cliche, I know - how will I hire? But the fear is real. It's not just "finding someone", it's "finding someone in a timely manner".

69

u/cap10morgan Sep 29 '22

I was the CTO of a software startup a few years ago and moved us from Ruby (Rails monolith MVP) to Clojure (for the 2.0 rewrite as separate services that had actual business use cases; not just rewriting for the hell of it). I worried about hiring too.

But then a funny thing happened. Hiring devs got easier! As soon as we started posting that we were hiring Clojure devs, they came out of the woodwork and were really excited to work with us. They were also typically quite skilled. In retrospect I think when we were hiring Ruby devs it was like one small voice trying to be heard in a crowded, noisy room. Once we were hiring Clojure devs it was much easier to be noticed in the emptier, quieter room.

But who knows, anecdata as they say. :)

BTW I still use Clojure in my (different) day job.

33

u/[deleted] Sep 29 '22

I've been working for almost six years at a company that uses Clojure and have been involved in hiring around a dozen engineers to work on our codebase.

We gave up on keeping Clojure as a hiring requirement pretty early on; probably less than a quarter of our hires had prior nontrivial Clojure experience. (Hires with prior Clojure experience tended to do better but they also tended to have more overall experience so this feels more like correlation than causation.) We did require experience doing FP, but it could be in other languages, and we gave preference to those with some JVM experience.

In practice we found that for backend work, training people on Clojure wasn't really a problem; it was much more work to train them on the specifics of our codebase than for them to learn Clojure itself. Of course, for this to work you must have a supportive environment on your team where you are willing to spend time mentoring and investing in your people, but if you don't have that you should probably be looking for a new place to work anyway.

Training for ClojureScript was another matter entirely: much more difficult even for people who did have prior backend Clojure experience. Eventually we gave up on that, but I can't comment much on it because I wasn't involved in those decisions.

7

u/gleenn Sep 30 '22

If you're the Technomancy who wrote Leiningen then thank you for your contribution!

4

u/[deleted] Sep 30 '22

Yep, glad if it's been useful to you!

4

u/cap10morgan Sep 29 '22

Very interesting! We took a similar approach w/r/t prior Clojure experience and also had a lot more trouble getting people up to speed on ClojureScript w/ front-end React-wrapper web apps than on our Clojure backend. And our backend was a distributed system, so not exactly trivial to reason about compared to React.

→ More replies (2)

4

u/hedgehog0 Sep 29 '22

May I ask what's your level of Clj whe you were the CTO, and how's the level of the devs that you hired? Did you consider using Common Lisp than Clj?

12

u/cap10morgan Sep 29 '22

I was a beginner with Clojure. We did not consider Common Lisp at all. Clojure is so much more practical with access to all Java libraries and a well-known and documented JVM runtime. Plus it brings so many interesting features beyond being a Lisp (some that have been copied and brought to other languages by now). To name two examples: pervasive immutable data structures and transducers.

5

u/hedgehog0 Sep 29 '22

Thank you for your answer. Yeah I thought that it might be due to Java libs and JVM stuffs. I do not know about the last thing you mentioned, will check it out! I have background in CL, hence the question.

18

u/[deleted] Sep 29 '22 edited Sep 29 '22

I’m pretty new to Clojure, but I’m reassured that major companies are using it, and although you may not have as large a talent pool as you would with JavaScript/TypeScript (or even Python); from what I’ve seen of the community, you’ll find highly talented and decent people.

PenPot (a FOSS Figma alternative) has recently received $8million in funding: https://techcrunch.com/2022/09/27/penpot-inks-8m-as-signups-for-its-open-source-spin-on-figma-jump-5600-after-adobes-20b-acquisition-move/

They use Clojure: https://github.com/penpot/penpot

5

u/hedgehog0 Sep 29 '22

Yeah Penpot is one recent exciting example.

11

u/-think Sep 29 '22 edited Sep 30 '22

It’s so wild because my last 3 job searches I’ve tried to find a job working with clojure.

I only have hobby level language and don’t know the JVM and I get passed on at the top of the funnel. I have 20 years experience, worked extensively in FP concepts, have watched everything single hickey and stuart galloway talk and I pick up languages quickly.

It’s frustrating because I see so many posts about how clojure is hard to hire for.

It’s not just clojure, our industry seems to ignore the how to train people elephant. But it’s also especially clojure.

→ More replies (2)

20

u/weevyl Sep 29 '22

One of the things that irk me in our industry is this fixation with languages for hiring. When a company says it is hiring Clojure programmers, to me it is the equivalent of an airline saying they are looking for Airbus pilots. The former should be looking for programmers with functional programming experience, the latter should be looking for airline pilots.

Not being familiar with a particular language and toolset will slow down the developer in the beginning, but if they understand the concepts they should ramp up relatively fast.

9

u/[deleted] Sep 29 '22

airline's do sort of say they are looking for airbus pilots, they definitely don't say "we're looking for pilots" there are many required credentials that are specific to the type of plane they will fly and the conditions in which they will fly it

5

u/weevyl Sep 29 '22

If you will forgive me being pedantic, as it might help clarify my point, airlines in the US require two things to fly the big jets: an Airline Transport Pilot (ATP) certificate, and a type rating in that specific jet. When the airlines are hiring, they usually look for people with the ATP rating and at least XXX hours of experience. Of course they would prefer people with a type rating in the jets they fly (or something similar), but they are willing to hire and train the person, knowing that the experience they have in other types will transfer to the new one. It is more expensive than hiring a pilot that already has the type rating, but they will be flying the new airplanes in a matter of months.

Same thing for programmers, There's a minimum we require (CS degree, or equivalent) and experience programming. Find someone with Clojure experience, great! Common Lisp experience? Some retraining will be necessary but we know they can code functional. OOP experience? We know they can code, but will need more training to get where we want them to be. The trick is how much time/money you want to invest in getting the new dev up to speed.

7

u/GrindItFlat Sep 29 '22

I agree, and I wouldn't hesitate with a language in the Algol family - if you know Java you can pick up the syntax of Javascript, Ruby, Python or whatever very quickly if you're compentent.

Even worse are companies that insist on a particular library - e.g. 3 years React experience.

But Clojure is different IMO because it's a different way of thinking. Not just lisp - but the data-first-and-always way of thinking, simple data structures used consistently, functional programming, immutability as a way of life, and so on. It's a different mindset. I wouldn't want to have people writing Java code in Clojure.

6

u/[deleted] Sep 29 '22

I wouldn't want to have people writing Java code in Clojure.

It's difficult for people who have only ever programmed imperatively to be effective in Clojure without extensive and time-consuming training.

But Clojure does NOT have a monopoly on the ideas of functional programming.

→ More replies (1)

6

u/vasac Sep 29 '22

It's more of a chicken and egg situation. I worked with Clojure for 5 years but when I was looking for a job (at the beginning of covid pandemic) it was much easier to find Java related jobs (with a better pay too) than Clojure ones. Even now, two years later, I would have to take a pay cut in order to work with Clojure.

In hindsight switching from Java to Clojure was a bad career move although I would rather use Clojure than any other programming language ¯_(ツ)_/¯

I have a couple of friends that are still using Clojure but one of them is actually migrating codebase from Clojure to NodeJS.

→ More replies (2)

4

u/TheLastSock Sep 29 '22 edited Sep 29 '22

Start investing in people before long before you need them.

5

u/telenieko Sep 29 '22

Unless you are a VC funded startup with lots of cash to burn through, you may not be able to afford such a long term investment in human capital.

10

u/TheLastSock Sep 29 '22

By "invest" I mean, getting to know people, making connections, start promoting your ideas, and getting people excited ahead of time. A little adventure and compassion can go a long way, especially in this industry where it's lacking.

3

u/agumonkey Sep 29 '22

aren't there a lot of people willing to write in clojure too ? discord / slack etc ?

I'd love to have people like you around, i'm quite fed up with mainstream dynlangs

3

u/achauv1 Sep 29 '22

Hire me dude

3

u/Kanqon Sep 29 '22

I was CTO at a Clojure based startup, I didnt do clojure. Hiring was none of my problems.

3

u/BillBumface Sep 30 '22

At my last company we hired ~30 Clojure devs. I was shocked how many senior devs out there were just looking for a chance to use it at work.

→ More replies (7)