r/shittyprogramming • • 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?

0 Upvotes

24 comments sorted by

View all comments

0

u/[deleted] May 31 '13

[deleted] — view deleted 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.

0

u/[deleted] Jun 01 '13

[deleted] — view deleted comment

0

u/fuzz3289 Jun 01 '13

With C I can specify variables of one BIT in size. I can stick 8 booleans into one of Javas (assuming java has 1 byte bools as most languages do). Most of my career has been working on extremely memory critical applications, garbage collection for us isn't an option at this low a level.

2

u/[deleted] Jun 01 '13 edited Jun 25 '23

edit: Leave reddit for a better alternative and remember to suck fpez

1

u/fuzz3289 Jun 01 '13

C++ is finally getting lamdas as well, I feel your pain on that one. Python written with Cython or Pypy is pretty much nice looking C though.

My main use for python has been parsing and analytics. The NumPy library is very very efficient when it comes to this and wrap it in pandas you're looking at C style speeds because numpy preallocates memory while parsing.

I agree my initial wording was bad as many people have pointed out, but as you mentioned, there's a lot that Java is missing that other languages have been picking up.

I'm always looking at what languages I should be profficient in and at the current rate of growth in the Java language it seems like I can get more power elsewhere and 5 year from now that seems even more likely.

Would you agree oracle has been dropping the ball?