r/learnpython • ¯\_(ツ)_/¯ • Feb 13 '21

HOW HAVE I BEEN SO BLIND!!!!

IT IS ALL OBJECT....

EVERYTHING IS OBEJCT!!!!

EVERYTHING!!!!!

OH MY GOD!!!!

IT'S ALL OBJECT!!!!!!

AHHHHH!!!!

1.3k Upvotes

200 comments sorted by

View all comments

Show parent comments

20

u/DataDecay Feb 13 '21

Some people in the community will sometimes bash OOP, which makes me double take since you know that is Python.

2

u/Nobody_gets_this Feb 13 '21 edited Feb 13 '21

Tbf, if you have to define classes yourself, it‘s a very different use case.. Before you bash me, I know Python for about half a year now.

Edit: Downvote me instead of helping me to understand this. Thanks.

12

u/hassium Feb 13 '21

Tbf, if you have to define classes yourself, it‘s a very different use case..

Maybe you aren't doing class inheritance right? IME Python makes defining custom and especially child classes a breeze.... Apart from some namespace quirks but easy to work with once you wrap your head around it.

Maybe I'm not super clear what you mean by "it's a very different use case" though?

Edit: Downvote me instead of helping me to understand this. Thanks.

You're being downvoted cause you didn't present a clear issue or problem, just a vague complaint.

3

u/Nobody_gets_this Feb 13 '21

Well yeah, I didn’t properly express myself.

What I meant by „It’s a very different use case“ is: You dont have to mess around with naming things „self.innit“ or something to the extent. You just use the module.

You dont have to define anything, don‘t have to properly give parameters and such. You just use the module(s)

I believe that’s what people mean when they talk bad about OOP. You have to „define“ so much more or just.. Think differently about stuff. It‘s not as easy as using the pre-defined objects.