How I pivoted from an object-oriented programming style to a functional...
How I pivoted from an object-oriented programming style to a functional programming style:
1. I stopped attaching behavior to objects. My objects are merely data structures.
2. I create pure functions.
3. I pass primitives / plain objects (with no behaviors) to these functions.