Moving Parts

Friday 29 January 2016 at 08:00 GMT

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:

  1. Getters, Setters and Properties
  2. Why Couple Data to Behaviour?
  3. The Other Trade-off: Separating Data and Behaviour
  4. 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 Atom.

Maybe you have something to say. You can email me or toot at me. I love feedback. I also love gigantic compliments, so please send those too.

Please feel free to share this on any and all good social networks.

This article is licensed under the Creative Commons Attribution 4.0 International Public License (CC-BY-4.0).