this post was submitted on 11 Jun 2024
343 points (99.1% liked)

Programming

17509 readers
7 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 5 months ago (4 children)

No offense but I have never seen a good developer complain about java.

[–] [email protected] 31 points 5 months ago (1 children)

Java has a lot of advantages, but that's a crazy statement. I feel like literally everyone complains about basic stuff like public static void main, over reliance on factories and OOP, and just how much code you need to generate for some basic stuff. I'm not a Java hater, but I am glad I don't have to use it anymore.

[–] [email protected] -1 points 5 months ago (1 children)

What's the issue with public static main?

And whats the issue with factories? Factories are a design pattern thats not specific to Java, I'd recommend you read the design patterns book and understand why they exist. I also have 0 factory useage stuck in my mind and I have been developing with java since 2016.

OOP? It's an OO language ffs, that's like complaining that C isn't OO. If you don't want to use an OO language don't use one.

how much code you need to generate for some basic stuff

Do you mean verbosity because thats only a complaint for people who dont need to maintain stuff long term. Or maybe you misused java for doing something simple where python would have sufficed.

And then there is the springboot framework that makes shit trivial

[–] [email protected] 1 points 5 months ago

So a lot of Java hate I think is mostly in jest.

Personally, Java was the programming language that I had to use for my first two years of college. It's how I learned OOP, data structures, and algorithms. I had to use Eclipse, which at the time was AWFUL (and maybe still is, no idea). I remember it being semi-normal for it to take over a minute to launch on my (gaming) PC.

Later on, as I learned other languages and got a job, I just haven't really had a reason to go back to Java, and most of my memories of it are from being annoyed at Eclipse and needing to implement Quicksort in it. I'm sure it's a great language and I bet it's a lot better and more convenient now. It's just kinda trendy and weirdly nostalgic to hate on it in a half-serious way :) .

[–] [email protected] 8 points 5 months ago

you clearly don't know many good developers

[–] [email protected] 7 points 5 months ago* (last edited 5 months ago) (1 children)

People complain about Java being weird all the time. The reason people complain about it is because they use it all the time and things about it annoy them.

Pretty much everyone who uses any programming language has stuff they don't like about it and we'll complain about it from time to time. A lot of this stuff never really gets fixed, because updating languages is problematic, see mysqli_real_escape_string.

[–] [email protected] 0 points 5 months ago

I don't want to be that guy, but that PHP function call at the end that you said never really gets fixed... I haven't used that in 20 years of PHP, and I'm pretty sure that hasn't existed since like 10-15 years ago. People seem to love to hate php because 20 years ago it did something not quite right.

[–] MadhuGururajan 5 points 5 months ago

Being good has nothing to do with having to maintain your company's code base that's in Oracle's Java SE 1.6.

You can't just design your way out of a conflict whose solution is to change either the existing system architecture or change Java versions,

both suggestions will get you laughed out of the room.