Moving Parts
This week, I tried to explain the difference as I see it between object-oriented and functional programming. There are four articles. If you haven’t seen them yet, they’re linked right here:
- Getters, Setters and Properties
- Why Couple Data to Behaviour?
- The Other Trade-off: Separating Data and Behaviour
- Referential Transparency, And The True Meaning Of Functional Programming
But perhaps Michael Feathers said it best.
OO makes code understandable by encapsulating moving parts. FP makes code understandable by minimizing moving parts.
— Michael Feathers (@mfeathers) November 3, 2010
If you enjoyed this post, you can subscribe to this blog using RSS. I personally use Feedly; you can subscribe here.
Maybe you have something to say. You can comment below, email me, or toot at me. I love feedback. I also love gigantic compliments, so please send those too.