by famousactress · 15y ago · 0 comments
The comparison isn't Java to C++. It's Java to C#, Scala, even Python or Ruby. And against C# and Scala in particular, Java does very poorly.
Maybe I'm biased due to other new(er) languages becoming mainstream. But it feels like Java (as a language) has fallen behind as other Languages adopt new features that cater to different/modern techniques.
Java won't ever be cutting edge (and given the types of applications that are built with it, some stability/maturity makes a lot of sense), but look at the advances that C# has made since 1.5/1.6 has been out.
It wasn't like C++ pre C+11 -it didn't take a decade or soto catch up with the rest of the programming world, but you can see the its size slowing its advancement down.
I want to like programming in Java again (I'm not saying it's bad, or it's a mistake) - for a long time it was my go-to language for when I play with ideas. But for now it's just a way to pay the bills while I try to figure out what I want to do/make/build.
This is the mindset I've never understood.
Do you stop using a hammer to bang in nails because the hammer "community" has splintered, or the development of hammers has stagnated? No, you still use it to fulfill a job it solves.
New language features are all fun, but unless they actually result in faster execution, or allow you to do things you could not do before, they're only use is to make some developers happy, which I don't think is particularly important.
It looks like there's some real solid good APIs here though which is great to see.
At first thought I imagined it'd just be useless pandering to developers like "You can now do closures or first class functions" or something equally useless.
"You can now do closures or first class functions" or something equally useless.
Flamebait, but I'll take it. I think the dust-up over the possibility of this being added to Java really seemed to contribute to the decline and apparent disinterest of a lot of folks (I'd really be interested in Bob Lee's opinions here, since he was someone who's ideas I was particularly aligned with at the time and has since gone pretty quiet).. That said, lack of first class functions in Java isn't a trifle. It's why Java isn't all that much fun to program in compared to more expressive languages... and a bigger problem is that more than any other language I'm familiar with Java suffers from the problem of not being able to see enough ideas in a given amount of source code. I'm explaining that terribly, but I just mean that Java code is at least 60% scaffolding that isn't material to the author's intent.
Closures, or first class functions done nicely would be a big step in alleviating that issue, IMHO.
I think you don't appreciate how some language features can help you reduce the size and complexity of your code. Those are the kind of features that are sorely lacking in Java, and that means huge, bloated code bases.
I'm tired of visually parsing 20 lines of a Java method and filtering out all the boilerplate iteration junk just to find the one or two lines that actually do something. Often this kind of thing can be reduced to a few simple, relevant lines when you have closures, for example.
Congratulations, you've found your Blub. (Mine is Python; I'm still not clear on what monads would do for me in practice).
They require more resources to run, but they tend to get the job done a lot faster.
Perhaps a better analogy is a screwdriver. Apple came out with their "pentalobe" security screws a while back - is it reasonable to buy one of the screwdrivers that is made for it that are available now if you needed to (un)screw one? The other options are to use a philips and damage the screw and suffer a lot of frustration, or to wait until Craftsman makes one (probably never).
That said..
1. OF COURSE you can make languages that are faster or slower to write code in.
2. Trivializing anyone who jumps ship on a language as being enchanted with the 'novelty of a new language' is obnoxious and arrogant.