As a long-time OO developer, I've finally embraced the functional paradigm...


As a long-time OO developer, I've finally embraced the functional paradigm in #javascript.

Epiphany: Most my objects are just data structures. *No behavior*. Pure funcs accept objects, and return copies to avoid mutation.

Easy to test. Easy to compose.

View original on X