DEV Community

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

Collapse
 
lepinekong profile image
lepinekong • Edited

There is a diagram called grafcet (see example of traffic light below made with grafcet.online) - 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 rubyguides.com/2018/12/state-machines

I also use it to create interactives notes or cheatsheets see examples:
dev.to/lepinekong/figma-plugin-api...