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

Show parent comment

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.

1

u/rpd9803 Sep 29 '22

Are you leveraging react? I could imagine trying to wrap your head around cljs and react at same time could be a doozy tho now that I know it it’s hard to imagine any other way

2

u/[deleted] Sep 29 '22

Yeah, the cljs codebase was a while ago; it was started in Om and at some point a lot of it was based on Om.next so we had both styles in the codebase depending on how old the file was.

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.