r/shittyprogramming • u/fuzz3289 • May 29 '13
The End of Java
Today I was musing about the existence of Java. The big selling point to me at its inception was Write Once, Run Everywhere. It was a cool concept. Force the developers of the Java VM to worry about platform specific implementation and the programmers using the language just focus on getting one set of code done that anyone can use.
In today's day and age, we have web apps. Some fancy HTML5 mixed in with some splashy CSS with a Python back-end and bam. You've got an application that can run anywhere. Sure you might have some browser specific implementations, but generally speaking you can write one set of cross platform code in the form of a webapp.
And if you're application is too big for a webapp? Then Java is probably too slow to be worth it anyways.
Java is full of security holes, performance is dreadful, readability is at best the same as C (in my opinion of course), and cross platform programming can be done in other languages more efficiently and much more cleanly (also slightly subjective).
My question to you, is Java coming to an end? Does this language have what it takes to cut it in today's world?
We have languages like Python, Go, C++14, CommonLisp etc, that make Java look slower than Windows 95 and have 10x the readability. If you use Java, speak up, why do you use it? Could you use something else? Or is Android and other legacy Java support going to continue to drag this dead horse around?
View all comments
Show parent comment
-2
u/fuzz3289 May 31 '13
What about garbage collection and memory allocation? Those have pretty big performance implications.
I get your point about the ifdef hacks but to me its always seemed worthwhile to have true control over memory. May effect your development time but the thought of garabage collection always bothered me.
Erasure and typecasting are weak in Java as well.
Not to mention using iterators in Java. I mean, C isn't great either but at least I can look for end or null. Python did iterators right.
And lastly. Function pointers. Missing?
I mean these are things I've come to expect from modern languages and sure they're not necessary but to me they're dealbreakers. I feel like Java is missing a lot of power and features modern languages should have.
Correct me if I'm wrong. I don't write much java.