4 ms·
> 2) It is actually surprisingly difficult to teach object oriented programming in Python, since most simple problems are much more easily solved in a functiona
by hcarvalhoalves 13y ago
> 2) It is actually surprisingly difficult to teach object oriented programming in Python, since most simple problems are much more easily solved in a functional manner than with classes.
That's actually a good thing. I'm afraid too many people learn programming early on with e.g. Java and end believing programming equates defining classes and mutating objects. I've worked with people with such background (actually, I routinely do), and it's not pretty. I notice a difficulty in these people to grasp fundamentals, like data structures, idempotency and high-order functions, which leads to awful bad practices.
- Derbasti 13y agoI completely agree. Still, OOP is an important tool to have in your belt. I would say though, that a difficulty to grasp data structures or higher order functions is pretty universal in beginners regardless of background. Those are just hard concepts.