this post was submitted on 30 May 2024
386 points (94.3% liked)

Programmer Humor

32242 readers
87 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Asudox 30 points 4 months ago (11 children)

OOP is nice. Why do people hate it?

[–] Blemgo 40 points 4 months ago (3 children)

I think the main problem is that people try to shoehorn OOP mechanics into everything, leading to code that is hard to understand. Not to mention that this is basically encouraged by companies as well, to look "futuristic". A great example of this approach going horribly wrong is FizzBuzz Enterprise Edition.

OOP can be great to abstract complex concepts into a more human readable format, especially when it comes to states. But overall it should be used rarely, as it creates a giant code overhead, and only as far as actually needed.

[–] [email protected] 6 points 4 months ago

Oh no, the FizzBuzz EE has evolved since I've last viewed it! 😱 Is it bad if it actually reminds me of my current work project's backend (that I haven't written) a bit?

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

Man thanks for sharing the fizz buzz link.

[–] seth 4 points 4 months ago

I got as far as seeing they chose Java and opening the constants file, and immediately executed a strategic withdrawal. I love that people went to this level of detail

load more comments (7 replies)