What does state management and mental health have in common? We tend to think in the moment in life - I’m tired, I’m hungry, I’m burnt out. But we sometimes fail to think about the transitions between the states - how did I become tired, burnt out, and how do I transition to a better state? Then, how do I avoid taking the transitions back to states I don’t want to be in? Thinking in terms of states and transitions is a useful mental model not only for software development, but for understanding yourself and having better control of your life.