-
Functional Programming and Object-Oriented Programming, an allegory ...
-
FP like a factory Raw material goes in on one side. Every machine does its job. It’s like a perfect dance of a thousand repetitive movements. Out pops one finished product, or 10.000 identical products, it doesn’t matter.
-
OOP like a relationship You decide to paint the house together. You get into a fight. You complain that she's not careful with the corners. She reminds you that you messed up the carpet. You get the job done. You won’t do it again.