Re:Goodbye, Object Oriented Programming
by pdimitar on Tuesday July 26, 2016 @03:56PM
(#12168330)
I'm sure you're right. Apologies for me misleading. It appears I'm twisted by years of OOP during the start of my career.
[ Parent
| on HN ]
Haha. No worries. Mine is also just an observation I made with the few people I'm mentoring and teaching.
Also, they seem to grasp recursion much better via Haskell than in Python or Java. I believe that's mostly because Haskell makes structural recursion real easy (ie recursion along the structure of your data type, eg like along a tree)---and once they are comfortable with the basic idea from that, other patterns of recursion are easier to understand.
Algebraic datatypes and pattern matching on them are a great benefit for that structural recursion.