DEV Community

Discussion on: Teaching Functional Programming: Two Big Picture Approaches

Collapse
 
dfockler profile image
Dan Fockler

OOP seems like it's much more intuitive to the way people interact with the world. There are objects and they interact and you manipulate them. Whereas FP is like how a scientist sees the world. You have an input and you can transform the input(s) and route it to the next place, just like your example of circuitry.

Learning physics feels the same way as learning FP coming from OOP. You have this intuition about the world that may be useful for being a human, but it's all wrong to actually describe mathematically what's happening. So you have to rebuild your intuition with the new concepts you've learned.

Collapse
 
eddroid profile image
Ed Toro

I wish I had used the words "intuitive" and "intuition" somewhere in my post. 😞

Although I'd probably shy away from describing an OOP worldview as "wrong" (not to allege that you are describing it that way). As engineers we just want to use the best tool for the job. Sometimes simple-but-incomplete representations are useful, in physics and in coding.