News for hackers. Stuff that matters.
Re:The Future of Clojure by dustingetz on Thursday December 10, 2020 @10:43AM (#25374861)
What % of Java projects fail again? With Java, your convoluted mess is 100k to millions LOC. With Clojure, the same devs make the same convoluted mess but in 10k to 100k LOC, and you've left the door open for an inspired "true Scotsman" to come in and do the whole thing in 5k. But management has to understand that, and of course the principle agent problem, peter principle, politics, conways law ... Java is great for middle managers, it makes their department headcount grow, and they get to pretend the project is succeeding because nobody can tell otherwise.
Re:The Future of Clojure by lmilcin on Thursday December 10, 2020 @10:47AM (#25374916)
With Java, your convoluted mess can be parsed by IDE and you can figure out what it is doing. Also, most of it looks the same and is Ctrl+c, Ctrl+v of something else.

With Clojure the mess is still 100k to millions LOC because the guys did not know how to make worthwhile abstractions, but now it can't be parsed by IDE and you are screwed trying to figure out what happens at runtime.

ALso, if you think if there is less code then it is easier to understand, go and read any advanced Common Lisp book (like Let over Lambda) and try to really understand what some of the more advanced macros do, exactly. It is definitely not the same as reading pages upon pages of redundant code.

Re:The Future of Clojure by taeric on Thursday December 10, 2020 @11:06AM (#25375147)
This doesn't match my experience. I've had to deal with some Java code that the ide was useless to help figure out. Usually made worse by some over optimized build system that was non Google friendly to see what was supposed to happen.

Worse, the abstractions made it so that even a simple feature would require about six files. Not counting the tests.

Not to say that clojure has been a breeze. Worst I see there is developers refusing to use libraries it external programs and instead taking a ridiculous "first principals" approach. Even if they get it working, it is typically not search friendly, as everyone else is using some other tool. Basically, the same trap I see in build systems,

Re:The Future of Clojure by jimbokun on Thursday December 10, 2020 @05:55PM (#25379919)
> I've had to deal with some Java code that the ide was useless to help figure out.

Spring annotations, maybe?

Re:The Future of Clojure by bcrosby95 on Thursday December 10, 2020 @07:06PM (#25380570)
God I hate them. With annotations Java pulls off the rather unique trick of being both verbose and magical at the same time.
Re:The Future of Clojure by randompwd on Thursday December 10, 2020 @09:20PM (#25381492)
tbf, annotations aren't the blame. It's Spring's runtime magic with close to zero friendly figure-out-ability.
Re:The Future of Clojure by taeric on Thursday December 10, 2020 @09:18PM (#25381475)
That and just over "abstracted" code that honestly feels like a strawman that someone made to argue against abstractions. :(
Re:The Future of Clojure by dustingetz on Thursday December 10, 2020 @11:34AM (#25375431)
Millions of LOC of Clojure project is unheard of; from the article: Nubank has "2.7 million lines of Clojure code [encompassing] several hundred microservices written in Clojure" – the 2.7M is across the entire enterprise.

I have an enterprise client right now sitting on 1.5M java 1M SQL 1.5M XML for a single government system that mostly does not function at all, it just gets passed from contractor to contractor, each one sucking down a hundred million dollars before tossing the hot potato. Thanks for the money, Java!

Re:The Future of Clojure by aprdm on Thursday December 10, 2020 @12:57PM (#25376387)
A fintech that I am aware of chose Elixir and is a complete shitshow, they're trying to move away from it after being established with it.

Can't hire for it, can't refactor the code at scale, etc.

Be careful with what you read, newer languages are usually trying to sell themselves where established languages have happy people not trying to sell it, or, resume driven developers trying to sell it as bad.

Re:The Future of Clojure by danielscrubs on Friday December 11, 2020 @05:23AM (#25384197)
New languages have green field projects by its very nature feeding the hype.
Re:The Future of Clojure by amgreg on Thursday December 10, 2020 @10:52PM (#25382084)
Brex?
Re:The Future of Clojure by jdminhbg on Thursday December 10, 2020 @01:23PM (#25376668)
> With Java, your convoluted mess can be parsed by IDE and you can figure out what it is doing.

This is not my experience whatsoever.

Re:The Future of Clojure by omginternets on Thursday December 10, 2020 @10:53PM (#25382089)
Can you elaborate on “Clojure can’t be parsed by IDE”? Surely some amount of static analysis is possible.
Re:The Future of Clojure by simongray on Friday December 11, 2020 @02:55AM (#25383429)
The same amount of static analysis as Python, Ruby, or any other language that doesn't have static type checking. Some people need something to happen when they press dot, though: https://www.youtube.com/watch?v=aSEQfqNYNAc
Re:The Future of Clojure by mto on Saturday December 12, 2020 @03:41AM (#25396791)
As I've been mostly using Python for the last 10 years I forgot how nice this dot thing can be ;). True that vscode and pycharm can give you something but I found that it's very often crap.

I am writing a little bit of C# atm and astonished how you can just dot tab through your work (without ever having read a tutorial or book on C#) and all those other contextual information you get with "full" visual studio. Somehow feels like just letting you guide through the work :).

On the other hand, the students I teach really struggle when they don't have all their IDE tricks. They learn almost exclusively C# at their institution in the first year(s) while my experience is mostly playing with Unity ;).

Re:The Future of Clojure by omginternets on Friday December 11, 2020 @10:09AM (#25386579)
Gotcha, that's kind of what I figured.

Frankly, VSCode is reasonably good at giving you something for Python, and the relative lack of static analysis is offset by other qualities of the language, so this feels like a pretty weak argument.

Re:The Future of Clojure by ashtonkem on Thursday December 10, 2020 @11:03AM (#25375126)
It’s really hard to argue that Java projects fail at unusual rates, given how much stuff runs on Java.
Re:The Future of Clojure by humourl3ss on Sunday December 13, 2020 @09:41AM (#25406849)
There is a bit of survivorship bias there, I've seen a lot of Java projects fail, but the blame is only partly on the language, really its the fact that there are so many developers, and the pareto distribution of good to bad java programmers. That and business do not know what the f*ck they are doing. I've seen really good java devs at work, the software they produce is amazing, but the code and structure is incomprehensible, they are masters and I am a mere mortal. Clojure on the other-hand is simpler, higher level, more expressive, but you can still shoot your foot, just like java.
Re:The Future of Clojure by dustingetz on Thursday December 10, 2020 @11:17AM (#25375260)
you cannot measure anything at all about failure rates by looking at successes
Re:The Future of Clojure by jimbokun on Thursday December 10, 2020 @05:56PM (#25379942)
But are the rates for Clojure failures more or less than Java?
Re:The Future of Clojure by lmilcin on Thursday December 10, 2020 @07:08PM (#25380590)
It is unlikely you will find apples to apples comparison.

What if Clojure projects are more risky by selection bias?

Re:The Future of Clojure by rienbdj on Thursday December 10, 2020 @11:14AM (#25375233)
Maybe not at unusual rates, but I wouldn’t be surprised if the rates are high.
Re:The Future of Clojure by pbourke on Thursday December 10, 2020 @05:26PM (#25379641)
When you measure the failure rates of Java projects against the failure rates of Clojure projects, you’re not measuring the failure rates of a language, but rather the general failure rate of software in industry vs the failure rate for a (likely) small, motivated team.
Re:The Future of Clojure by ashtonkem on Friday December 11, 2020 @01:48AM (#25383100)
Higher than average? That's very much a [citation needed] moment if I've ever seen one.