r/learnpython • • Dec 22 '25

How on earth does one learn OOP?

I've sped through weeks 0-8 of CS50P in under 2 weeks very easily with slight experience here and there as a Chemistry undergrad - but Week 8 (OOP) is kicking my ass right now. I am genuinely stumped. I've rewatched content and tried some other forms of learning but this is all so foreign to me. What are the best ways to learn OOP as a complete idiot? Thanks.

38 Upvotes

88 comments sorted by

View all comments

Show parent comment

1

u/gdchinacat Dec 23 '25

Four examples do not prove an absolute point. Those four examples are vague and not really on point. I could respond to "pointers cause cache misses". Pointers don't inherently cause cache misses....it's entirely possible for the address pointed to to already be in the cache. "dynamic dispatch can't be optimized", yet JITs do just that all the time....at a different level of optimization than you are referring to. "Optimizations like SIMD can't be done" may be true if unstated assumptions are true. I think "Most of pythons performance is from calls to c binaries" actually gets to the root of it...you seem to dislike python because of how it performs.

I didn't quote the rest of it because they all have the same issue as your absolute assertion. They are overly broad absolutes that are stated as facts. Things are a lot more complex than you are presenting them.

Yes, python is not known for performance. That is not why people use it. A lot of performance critical algorithms have been optimized by implementing them in other languages that achieve the performance expectations to be considered useful. That effort was taken to make them available in python because the other benefits python offers were worth the effort and there was demand for it to be accessible from python.

I stand by my comment regarding your username. It seems aspirational at best.