Hacker News new | ask | show | jobs
by lenkite 1008 days ago
If you have dozens of functions that need to be called in specific orders, design and use a state machine and then use a dispatch function that orchestrates the state machine.