DEV Community

Discussion on: ‪How often have you created a state machine diagram?‬

lepinekong profile image
lepinekong • Edited on

There is a diagram called grafcet (see example of traffic light below made with - not many in traditional software know because it's used in complex real time automation in industry - that can help you have a clear vision of states

state machine spec

I draw it to follow this Ruby tutorial

I also use it to create interactives notes or cheatsheets see examples: