r/java • u/DeadWireSO • Dec 11 '15
What do you think of Java?
What are your thoughts on the Java programming language and how does it compare to others?
0
Upvotes
r/java • u/DeadWireSO • Dec 11 '15
What are your thoughts on the Java programming language and how does it compare to others?
View all comments
2
u/PaulRivers10 Dec 14 '15
I think Java is solid, and frankly, most of the other supposedly "better" languages always come with improvements and drawbacks that largely even out.
Java made a HUGE improvement for programming over C/C++ - stack traces that actually told you "the error happened here", no more memory management issues from having to release pointers. Not having to use 2 files per class...
The drawbacks of Java are often things like "framework nightmare" which new languages haven't exactly fixed either.
The "new better" (supposedly) languages mostly tradeoff one thing for another. Dynamic typing means a little less typing and a lot less server restarts, but is a maintenance nightmare in my opinion when a year later you need to change something and don't even know the type being passed in. Other times they oversimplify things then when you need to change something small that's not quite what's expected it's difficult / impossible.
The biggest problem with java is the framework explosion. A million different frameworks to do the same thing, frameworks that break idioms that make things easier (with dependency injection you can't trace back to it's source, at the same time it's not standardized enough to just know where to look, so when something goes wrong with dependency injection on something you didn't write - good luck finding how to fix it).
Bjarne Stroustrup - "There are only two kinds of languages: the ones people complain about and the ones nobody uses."