• ☆ Yσɠƚԋσʂ ☆OP
    link
    fedilink
    arrow-up
    7
    ·
    5 days ago

    It would, but in my experience, people don’t utilize this concept as much as they should when designing programs. I personally find it helpful to create a state machine diagram before starting coding. By doing so, you are forced to to consider potential exceptional scenarios from the outset, rather than focusing solely on the happy path and then having to address exceptions as they arise. Although you don’t need to handle these issues immediately, it is crucial that your design incorporates provisions for them at least.