4 ms·
Recursion is harder than iteration. Immutability is harder than mutability. Callbacks, dependancy injection, and implicit loops are hard to wrap your head aro
by sametmax 9y ago
Recursion is harder than iteration. Immutability is harder than mutability. Callbacks, dependancy injection, and implicit loops are hard to wrap your head around.
Oop is just a strut with functions and a fancy dress. It's not really a new way to think.
I trained many, many, many people in small groups in programming. The functional concepts are always the hard ones to explain.
And as a dev, even when i deeply understand the benefits of immutability, i find it often being a huge constraint for the most mundane tasks.
Most programmers make simple programs. They don't need complex tools.
- gagege 9y agoI think you're forgetting what it was like to learn your first programming language. A lot of concepts in procedural programming and OOP are hard to wrap your head around at first (static, by ref or by val, the difference between base classes and interfaces).
- sametmax 9y agoYou don't have to learn any of this in python, ruby or php. Oop or functional doesn't need to mean low level. Lower level is harder no matter the paradigm. The features I mentioned are functional no matter the level.
- lkitching 9y agoNeither callbacks nor dependency injection are functional concepts, and implicit loops are pervasive in Ruby (and non-linear control flow in general). OO in Ruby is quite a long way from structs + function pointers.