Amy Blankenship
Mar 14, 2024

No, it's really not a bunch of singletons. But if you have one base class that is extended in a bunch of places (but not overriding the "guilty" method), trying to figure out which calling code is even calling the instance of the right subclass is a PIA.

I'd agree that mixed suits most people better, but I think as people get better with FP, they tend to move more of the functionality there because in general it works better and is easier to reason about. The problem is people aren't born knowing how to express the concepts they've spent years learning to express in an OO way in a FP way, so we all need training wheels while we learn.

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet