Hacker News new | ask | show | jobs
by ciarcode 54 days ago
Well, this is used in the automotive domain for long time now. Look at matlab/simulink: you can draw your algorithm as a state machine and generate the code out of it. Recently I implemented a state machine to manage a quite complex react component, who moves from one visual state to another through some css transitions. It’s not a difficult state machine, but I think people are not so well versed in it.
1 comments

I assume game engines might already have this or sophisticated version of this already implemented.
Sure. State machines are often useful.

A general framework is I think more rarely useful.

Unreal Engine is a popular game engine and it seems to contain dozens of different state machine frameworks.