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:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 6 years ago
MODERATORS
all 6 comments
sorted by: hot top controversial new old
[–] davel@lemmy.ml 5 points 8 months ago (1 children)

Nobody needs to force state machines on me. I’ve been addicted to them ever since my CS classes covering language theory.

[–] yogthos@lemmy.ml 2 points 8 months ago
[–] propter_hog@hexbear.net 5 points 8 months ago (2 children)

I just assumed all computer science curricula covered state machines

[–] yogthos@lemmy.ml 7 points 8 months ago (1 children)

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.

[–] propter_hog@hexbear.net 4 points 8 months ago

Oh I definitely agree, and I appreciate the share, I was just confused by the title of the article a bit.