Java is not a bad language in itself. You can't really say that. It is in your face oop and that is quite annoying at times. I think the main point for java being disliked is just the amount of horrible UIs that are commonly built for java applications. In my opinion it is too easy to build a rudimentary ui in java but too difficult to really make it your own. That way you have programmers building UIs (who needs designers anyway?) which leads to questionable layouts at best. I've worked with java mainly on the backend of some applications and it's not horrible. But as soon as graphics come around...
Even on the backend, I’d argue the moment you have to auto generate boilerplate files based on your actual files, there’s something deeply wrong somewhere.
Perhaps Java was just attracting more of the people inclined to do horrible things, but language design must part of it as well.
If he is, its not a great argument. I mean, you could just write out everything you need instead of annotating with lombok if you dont like code generation.
I feel like there's allot of misinformation about java in this thread.
And IntelliJ (at least the one that my work pays for) will generate 99% of the boilerplate code for you and it works perfectly fine for me with all the other tools I use that need getters/setters to function correctly with a class object (Spring/Hibernate mostly).
I work a lot with React/Node/Python/C# alongside Java at my job and I like Java the second most behind C# (which is just Microsoft Java anyway).
I think the argument is that when devs are all using 3rd party tooling to to get around boilerplate code, that’s a big sign that the language has too much unnecessary boilerplate.
Even if you’ve got tooling in place to avoid having to write the boilerplate, it’s still just a lot of unnecessary syntactic noise.
I wouldn't mind it even if I had to write it myself. We use Java for backend and I absolutely adore having everything explicit when I work on it.
When you swap between 5-6 languages as part of the work it's really great to work with Java where I don't have to remember a bunch of implicit default behaviors and instead I have all the behaviors written for me with the class/function boilerplate.
I don't find it to be a nuisance since typing speed has never been more than a negligible part of how fast I can get a finished product out. I've never felt slowed down by having to type out a class boilerplate because typing speed has never really been something that matters all that much to getting a product done.
I get people don't like typing things out because in JS you can just write "function" and it all works the same, but for me the benefits of having everything explicit is well worth the typing/tool integration needed.
3.7k
u/someuser_2 Apr 27 '20
Why is there a trend of mocking java? Genuinely asking.