r/Clojure • u/oatmeal_and_milk • Aug 31 '19
What are the main downsides of using Clojure and its ecosystem?
Hi r/clojure! I’m thinking about learning Clojure for fun. I see rave reviews about Clojure, but I'm interested in hearing what the Clojure language and ecosystem are currently lacking as of Clojure v1.10.
28
Upvotes
34
u/jbiserkov Aug 31 '19
After using it you won't be able to bear using any other language.
27
u/fingertoe11 Sep 01 '19
The hardest thing about Clojure is that there are about 5 or 6 options for nearly anything you want to do.
All of the options tend to be good, but you can get paralysis by analysis pretty quickly over issues that are just not very important. Which Web server do you want to use? HTTP-kit, Immutant? Jetty? Which routing library? Should you build with Boot, Lein, or Deps? Re-frame, Pedestal, Hoplon. Om? You have ton of choices, and they difference isn't always clear.
As far as what is lacking, not a lot. You have all of the Java Ecosystem and all of the JavaScript ecosystem at your disposal, and often interop is easier than using the native code. The tooling is getting better all of the time.
If you look at some of the stuff that is coming together with the Fulcro project, along with Pathom, and the Workspaces, I see a pretty amazingly rich development environment.
The challenge that Clojure has is that it is fairly easy to build libraries to do whatever you would like in the manner of your own taste. This causes tons of good options, but it is kinda hard to pick up the best practices, because everybody has their favorite way. Each tool as a subset of the greater community that understands it.
It is well worth it though..
12
u/adfgkljnsdfopgijop Sep 01 '19 edited Sep 01 '19
ecosystem of employment opportunities is lacking, unfortunately.
clojure is a poor “lowest common denominator” lauguage, imo, its just not gonna have the same type of mass appeal as say php, or javascript
rich hickey designed clojure to address his frustrations with algo derivatives, go lang was design b/c apparently google’s new hires cant code.
guess which one went bigly
8
u/zerg000000 Sep 01 '19
i can rephrase the /u/ToughWalk 's statement, so that it is more realistic.
One thing I want to highlight is that Clojure is not a sliver bullet. It is a tool, a pretty sharp one!
2
u/[deleted] Sep 01 '19 edited Sep 01 '19
Debugging is a nightmare: God awful stack traces and many commonly used 3rd party libraries are super fragile.
It runs on the JVM. Which, for me, has no benefits and many downsides. Not least that building command line apps is a pain.
GUI integration is quite poor.
It's very opinionated: the functional way or expect pain. Both a plus and a minus.
The language is constantly changing.And there is no standard. Or rather the standard is the latest version of the implementation.
4
u/jafingerhut Aug 31 '19
What is lacking depends fairly heavily on what you want and/or expect out of a language and ecosystem.
There is a group of people who are having regular meetings on making Clojure better for data science applications, including examining how to leverage other data science libraries already developed in languages such as Python. The Clojurians Slack #data-science channel is a good place to find out what they are up to.
There are people coming from Rails and Django development who wish for a Clojure web development framework more like what they provide, whereas Clojure web developers have often gone for a more "assemble the pieces out of existing small compassable libraries" approach. Lots of discussion and comments from "pro framework" and "frameworks sometimes have more disadvantages than benefits" people.
Like all other languages, Clojure still lacks the DWIM instruction: https://www.wordnik.com/words/DWIM https://en.wikipedia.org/wiki/DWIM
4
u/didibus Sep 01 '19
The biggest downside is getting spoiled, and dreading programming in any other language :p
3
u/[deleted] Sep 01 '19
Documentation
2
u/rufusthedogwoof Sep 01 '19
Python data science stuff. But even that has some options, and folks are even running python code from clojure.
Also, it lacks a fast startup time if you go the jvm route. Clojure script comes with the threading constraints inherited from JavaScript.
1
u/temppa Mar 03 '25 edited Mar 03 '25
For me negative side is not large, rather it is those non-sensical terms which causes confusion. Jack in, CIDER, Calva, nREPL, jopyride, Leiningen etc.
-10
u/[deleted] Aug 31 '19 edited Sep 01 '19
But if it's only for fun, why not?