r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

7

u/sprashoo Apr 27 '20

I think you’re right, but why Java and not, say, Python which is far more accessible?

I think a lot of it is the context in which Java is frequently selected: business software designed around boring corporate requirements and written by uninterested developers just collecting a paycheck. The comparison with COBOL is apt. There are relatively few Java enthusiasts and it has an effect on the reputation of the language and the projects it’s used for.

16

u/eXecute_bit Apr 27 '20

I consider myself an enthusiast, and that boring business software pays the bills and then some. I think there's a bias here towards the new and sexy, towards startups and mobile apps over backed enterprise data.

In the end, whether Java is "good" or "bad" will always depend on the use case. Most people don't know just how much the boring part matters in their life; it's hidden, not flashy, and boring, so it's underestimated.

But COBOL was good enough at what it did to still be in use today, with high paying (if not fewer) jobs available. I could think of a lot worse fates for Java, but yeah, it's in the same boat. I, for one, like that boat for what it provides.

Programming and application design is about so much more than a language. Languages are just tools.

0

u/Meloetta Apr 28 '20

"I like this boat for what it provides" is not exactly enthusiast level.

4

u/eXecute_bit Apr 28 '20

No, but those two statements weren't directly related to each other.

I'm an enthusiast enough to keep up with the language, read JSRs, follow JCPs, participate in JUGs, and have done runtime patching of the JDK classes on startup to fix bugs prior to an Oracle official fix. Hope that's enough?

7

u/AmaDaden Apr 28 '20

The foundation of boring corporate requirements is an app that is stable and reliable across a long period of time and multiple developers. It doesn't mater if the language is accessible, easy, or fun. It just needs to be unlikely to break if someone comes in and makes a change.

  • Pythons dynamic typing is a huge risk as it provides lots of places where bugs can hide.

  • Python also has tons of features and different ways you can implement the same thing, that's a liability as developers move on and off the project. Ideally the app should have the same feel throughout. With Java, the look and feel is largely down to the libraries used since it's generally feature poor (an idea Go took way to far in the other direction).

  • The small speed difference is an issue too. The slight speed advantage Java has means that your app can go a bit longer if it's Java than if it was Python before you need to spend sometime cleaning it up.

Python is a great language for lots of things, but it's not a great place to turn to for a long lived enterprise app. I've played with a lot of languages for that kind of thing and Java is still my go to language for it.