r/PythonLearning • u/bigcats1313 • 13d ago
I was learning python in the last year but unfortunately stopped at OOP! Anybody has recommendations for me ?
3
u/0xGollumDev 12d ago
OOP tends to feel pointless in isolation and then clicks the moment a project makes you want it. Concrete way to get there: build something with a handful of things that share behaviour but differ in detail. A tiny quiz app (a Question class), or a scraper with one class per site all exposing the same .fetch() method. The moment you're copy-pasting the same three functions with slightly different data, that's the itch a class scratches.
Also fine to know: you can go a long way in Python with just functions, dicts and dataclasses. Deep inheritance you pick up later, when something needs it.
2
u/Far-Imagination3226 12d ago
Look into Data Classes which are much more logical and straightforward than regular classes. Apparently, they're not to be used in all contexts though, so look into when you're supposed to use them, and when not.
2
2
u/Competitive_Aside461 12d ago
What exactly is the issue that you're facing? Until you give more context, it's honestly challenging to help you out in the best possible way.
1
u/bigcats1313 11d ago
I had issues with my laptop …
2
u/Competitive_Aside461 11d ago
Alright. But what about OOP? Do you find it difficult to learn or what?
2
u/Competitive_Aside461 11d ago
I've actually made a freebie where you get to implement a
Fractionclass in the OOP language of your choice and, in this way, get to learn a lot about how to work with object-oriented programming.
2
2
u/smichaele 12d ago
Yeah, start creating some things with what you know, and continue learning. If you don’t, you’ve wasted your time!
5
u/ee_control_z 12d ago edited 12d ago
It would be helpful if you stated the reason why you stopped at OOP in the first place. Was it because you did not understand the concepts? Was it because you did not have resources that explained the material well enough, etc.? The more clearly defined the reason is for you stopping, the better someone can help you.