Skip to content

Instantly share code, notes, and snippets.

@greghelton
Last active May 11, 2026 00:08
Show Gist options
  • Select an option

  • Save greghelton/01f88dc8f17962726ca964c46e6015d6 to your computer and use it in GitHub Desktop.

Select an option

Save greghelton/01f88dc8f17962726ca964c46e6015d6 to your computer and use it in GitHub Desktop.
Quote - Functional vs Object-Oriented Programming

Whenever I write some code to deal with data about people then functional programming seems to work best. Whenever I write some code to simulate people then object-oriented programming seems to work best.
— Michael Fogus

Object oriented programming makes code understandable by encapsulating moving parts. Functional programming makes code understandable by minimizing moving parts.
— Michael Feathers

• A function doesn’t have to be 100% pure to get many of the benefits of purity.
• Of course you don’t want to use the fact that it’s not 100% pure as an excuse for making it even less pure.
• A more functional programming style often results in more parameters to a function.
• A functional style does lead to more parameters but, it is much easier to test the functions in isolation.
— John Carmack

I made up the term object-oriented, and I can tell you I did not have C++ in mind.
— Alan Kay at OOPSLA 1997

A long descriptive name is better than a long descriptive comment.
— Robert C. Martin

Show us your String class.
— one of the most common C++ interview questions in the 1990s

Never write a single line of code unless you have a failing automated test.
— Kent Beck

• MVC was developed in the late 70s for desktop apps by Smalltalk developer Trygve Reenskaug.
• 3-Tier architecture was developed in the early 90s by MIT professor John Donovan.
MVC & 3-Tier evolved separately and at different times. They are different things.
— ?

C programming proponent - In the beginning, all you want is results. In the end, all you want is control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment