Nobody needs to force state machines on me. I’ve been addicted to them ever since my CS classes covering language theory.
this post was submitted on 23 Nov 2024
15 points (89.5% liked)
General Programming Discussion
8792 readers
32 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 6 years ago
MODERATORS
:)
I just assumed all computer science curricula covered state machines
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.
Oh I definitely agree, and I appreciate the share, I was just confused by the title of the article a bit.