4 ms·
Finite state machines then. I never used more than 3 cases unless I had to write one.
by orwin 3y ago
Finite state machines then. I never used more than 3 cases unless I had to write one.
- agent327 3y agoAlso event dispatchers. I've written switch statements for various event systems that need to handle 60-100 events. You can easily get to hundreds of lines without things getting unreadable.