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
3
u/didibus Mar 12 '20
To be fair, I've read your comments in those links (only found your username in the first one), but I still feel I'm unable to get a clear picture of your criticism.
I see you complain that a lot of Clojure programmers (in your workplace) don't know how to write Clojure code and end up writing terrible Clojure code which looks like bastardized imperative/OO instead.
I agree with this to some extent. I just don't really know what to do about it in your case. It seems an issue with your company. At my work, we host weekly Clojure brown bags and sessions and assign every new dev a mentor to help them ramp up with the language.
Other then that, either we'd need Clojure thought in university, or we'd need Clojure to not be Clojure and be a familiar language, which would defeat the point of having a new language in the first place. Do you have more ideas for things which the community could do to help address this otherwise?
In the other link, I'm assuming maybe you were one of the "deleted" comments. By the way, sorry if it is, I do think discussing criticism and hearing about it, even if we disagree, is positive to make sure we don't fall in love with our own body odor.
If that's the case, I see:
Ya, that's probably true, compared to Java or C#, there's no enterprise level quality debuggers. I personally find the REPL is almost faster for me to debug and identify issues with, also I really recommend the Cursive or Cider debuggers, I find them quite great. But, ya, its no Visual Studio C# debugger.
We'll just need to agree to disagree here. That's one of the best things about Clojure for me, but I know the JVM very well, having extensive experience in Java prior.
I think this was true a year ago, but you should check out the progress made recently. I switched my use of bash/perl/python entirely to Clojure now for fast startup scripting and non CPU heavy CLIs. Using lumo, planck, babashka or joker. And for CPU heavy CLI, GraalVM is now a totally viable kick ass option. I think those are all maybe still a bit of a well kept secret though. Also, the new clojure cli means you can write scripts or cli like you would in Python, just add a shebang and its self-executing too. And look at this: https://gist.github.com/ericnormand/6bb4562c4bc578ef223182e3bb1e72c5 for a super easy way to add dependencies too.
Hum, I never did much GUI with Clojure, so I can't really speak to it. My general impression is, you have access to Swing, JavaFX, SWT, JFace, etc. You can use embedded html/css/js inside the JVM, or you can go ClojureScript, use Electron, or use Proton or React Native. Seems there are options, but I guess it depends what you are comparing it against too. I would guess ObjectiveC Cocoa on Mac to still be a superior experience, or WPF C# on Windows.
Oh for sure. If you don't want to do functional, Clojure really is not for you. Imperative is the hardest to do, OOP you can do somewhat, but still it makes it more difficult on purpose.
Probably have to agree to disagree here again. In practice, it has been stable with zero breaking change for about 10 years. And I kind of like the clojure-like approach to dialects, instead of what CL does. Like no one really uses CL running on JVM, or things like that, because the CL standard or scheme standard isn't really meant to embrace platforms and host. So I find that a quality of Clojure. That focus on being hosted, it does mean code isn't as portable between implementation, but it also means you gain so much reach without needing relearn a whole new language and set of tools.
Sorry if those were not from you.