Handy pattern: Declare a single status to replace related state


Handy pattern: Declare a single status to replace related state. I call it a "poor man's state machine"

What term would you use to describe the pattern on the bottom? Is there a term for using a single piece of state instead of discrete pieces of related state?

cc @DavidKPiano

View original on X