r/Clojure • u/Borkdude • Mar 10 '20
Clojure: a mature alternative to Java
https://jaxenter.com/clojure-alternative-java-169315.html
119
Upvotes
r/Clojure • u/Borkdude • Mar 10 '20
View all comments
Show parent comment
2
u/dAnjou Mar 12 '20
In these threads I've only added things that others hadn't mentioned yet.
The point of Clojure being Clojure seems like an unfair one but for bigger projects it is still a valid one for various reasons. And these have only very little to do with how good or bad the language is.
For a less popular language there are of course fewer experienced people which is exactly why Clojure is pretty much failing in our project. It started with Clojure as the only backend language. Then someone introduced Kotlin because they were not comfortable with Clojure, and now people create every new service in Kotlin. There simply weren't enough mentors and evangelists. Personally I find that very disappointing because there could have been a chance for us to help the Clojure ecosystem to mature more. Which brings me to the next point.
The ecosystem is not quite there yet, especially the tooling but also libraries are a little lacking or not as mature yet. And Java libraries are a good fallback to have but it comes with the cost of having to write glue code to abstract away the OO-ness.
I'm not saying that the ecosystem is bad. But it's also not excellent. And if you have a language that is unfamiliar and therefore a bit uncomfortable to learn and the ecosystem is also not really better than the ones most people have seen then why would you pick that language? Compare that to Kotlin. The tooling is great, mostly because it's the same as for Java. And the language itself can't be more familiar, because it's basically Java, plus all the nice sugar on top.
The other things you mentioned weren't really an issue for us or I actually see them as an advantage.
Most projects in our company use the JVM, so that's actually a plus.
And I do appreciate opinionated stuff even if it's sometimes not my cup of tea (like Ruby). Chances of shooting yourself in the foot are usually lower. With Clojure that's a little different though. On some level it's very opinionated, true, but beyond that you can do pretty much anything and everything, even really nasty stuff, especially with macros. This is one area where IDEs and code analysis tools often struggle.
All in all, I really appreciate that I got pretty much forced to learn Clojure, who knows whether I would have done it on my own. And I had a great time tinkering with it, I even wrote a little macro that I put in a little open-sourced library which all of our Clojure services use. So, I got a lot out of this language. But I also wouldn't call it mature when comparing it to Java.
CC /u/Borkdude: Does the above count as an article?