this post was submitted on 08 Jan 2025
50 points (96.3% liked)
Programming
19290 readers
107 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 !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Unrelated, I know, but I'm really interested in your antu-OOP-ness. I don't think I've heard anyone say they're anti a concept like this yet
I can't tell if we are miscommunicating here, or if my leg is being pulled.
You are not aware of staunchly anti-OOP (object oriented programming) people existing? Anti-OOP is a majority position now (always was in my circles). And the holdout proponents would usually only defend one (limited or revisionist) way of doing it, usually referring to some specific language implementation. Long gone is the quintessential list of OOP talking points presented in C++/Java classes in the 90's.
For people new to this, a quick search should lead to an endless stream of results. I found this one immediately which looks decent and covers good ground.
Alright, then. I've read, like, a few Python tutorials. I thought OOP was more of a way to do things if it makes sense to. Like using a for loop vs a while loop, just on like, a language and code structure level. I didn't realize most people didn't like it? I hardly even know what it is lol. It's just that I've not heard someone explicitly be against it. I didn't even consider it a thing people would be pro- or anti- lmao
The context you are missing is that, for a lot of people, OOP was taught as the be-all and end-all of abstraction. I personally have seen some of my less experienced colleagues start to write code to solve a problem and immediately reach for OOP over and over again, even when this made things a lot messier (which ultimately I had to deal with...), because that is how they were told at one point was the "correct" way to do it, so I can completely sympathize with anti-OOP sentiment. On the other hand, I am not personally vehemently anti-OOP because I think that (as you have correctly observed) OOP is a perfectly fine pattern when it fits, and arguably the root problem that my colleagues had was not so much that they used OOP everywhere but that there was a tendency to not think through the consequences of their design choices.