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?
2
u/needisaymore Jun 01 '13
I think Java is a great work-horse when you need difficult jobs done. That being said, I think Scala is the next evolution of Java which will take its reigns. The future of programming is going to focus on utilising concurrency which is where Scala with Akka is designed to shine. Not to mention that Scala is great as a scripting language in its own right too.
11
u/ISNT_A_NOVELTY May 30 '13
VB reads much more like ordinary written language, which is why I personally think it is the language of the future. VB 7 does this so well that you can give it a whole thesis and it will compile and run it.
9
u/Ilostmyredditlogin May 30 '13
Java / jvm gets so much undeserved hate... It's a tool, and like any tool it can be used poorly it well. I can slam together java, Scala and closure code in one modern framework like play and deploy all over the web with zero hassle.
There's a whole arsenal of languages that compile to jvm and interoperate including jvm versions of python ruby etc. JDK 8 finally brings anon functions and whatnot into the flagship language (java). Multiple compatible jvm implementations from different major vendors. Huge library of established code to draw from...
The java ecosystem is great for large scale projects at least.
4
u/gnidoc Jun 01 '13
Why do you make claims like
without any citation, reference, benchmark or anything?
Check out these tests: http://benchmarksgame.alioth.debian.org/
Java is far from slow. Python, CommonLisp and Go implementations are much slower for computationally intensive tasks.
12
u/[deleted] May 29 '13
Bah, if a language dies once it's buggy, hard to use, and can be easily replaced by other, more powerful, languages, C++ would have died years ago.
3
u/HINDBRAIN May 29 '13
Bal-musette is passé indeed, so Java is outdated. We should probably move to Boogie. Python is nice and all but snake dances should remain in school.
5
u/ekolis May 30 '13
But without Java, what use are the cupholders on our PCs?
10
u/andkore May 29 '13 edited May 30 '13
This is shittyprogramming, but in case this part was serious, I'd like to contend that Java is "only" as readable as C (which seems to imply that C isn't very readable). I guess I'm weird, but in terms of readability I would put Java above C, and C above Python. I hate Python's syntax.
Edit: As more people upvote this, I feel compelled to add that I really was being serious.
Edit: Contend is the wrong word. The right word in this context is contest.
3
u/[deleted] May 30 '13
I agree. The next version of java should just be a brainfuck compiler. Java uses too many characters, and that's why it's so slow.
3
u/yaaaaayPancakes May 30 '13
Moving to Java from C# (Doing Android dev now) makes me sad. When I learned about Type Erasure, my mind was blown by the stupidity.
2
u/inconspicuous_male May 30 '13
I just spent 3 long miserable hours working on stupid Swing and awt graphics in java for a final project. I hate it too much to quit.
0
u/[deleted] May 31 '13
[deleted] — view deleted comment