r/java • • Sep 10 '21

Why people don't love Java?

I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.

Is there any specific reason for that?

Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.

201 Upvotes

379 comments sorted by

View all comments

542

u/thomascgalvin Sep 10 '21

The people posting to that sub are typically young, and probably have more experience with Javascript than anything else.

Compared to JS, Java can feel heavy and constricting. Lots of boilerplate, a type system that's strictly enforced by the compiler, and so on.

It isn't until you have some real-world experience, with code spread out across dozens or hundreds of files, that you realize the "limitations" of Java are actually meant to prevent you from blowing your own foot off.

13

u/Danelius90 Sep 10 '21

I think another issue can be a lot of "java devs" can't code in java for shit. If you write procedural code, loads of static methods, no consideration for OOP and just use Object, String and arrays everywhere rather than define your own types then you're going to have a bad time. We work with a third party at my company and the way I describe a lot of their code is tutorial level. You can tell because it looks like code taken from a blog post in 2006

5

u/experts_never_lie Sep 10 '21

I expected you to mention bad practices, but you went straight to atrocious ones. What you're talking about is more than bad enough to get your git access revoked at a former employer. Yes, they actually did that when one developer's work took more of others' time to fix it than just writing it.

5

u/Danelius90 Sep 10 '21

In all honesty I think a lot of them haven't used git either. I kid you not, one of them messaged me the other week saying they couldn't check out a branch after cloning a repo. The problem was they didn't cd into the directory (which the error message made clear, saying "this is not a git repo"). And I really wish I could tell you it was one of the juniors...

Problem is I think the company has a long contract with them and previously the company had outsourced all development to these guys before upping their in-house capability. One of the first things I worked on was deleting all their work for the past 4 years and rewriting it from scratch.

one developer's work took more of others' time to fix it than just writing it.

We're finding the same too now. A lot of code reviews are just "start again and rewrite this entirely". Hopefully things will eventually get better

→ More replies (1)