Content deleted Content added
No edit summary |
No edit summary |
||
Line 14:
==Bug in program==
There's a bug in this program as state_init == state_red, but there's separate STATE_INIT and STATE_RED states, so red will initially be on for 60 secs, not 30. [[User:Genjix|Genjix]] ([[User talk:Genjix|talk]]) 03:24, 17 March 2008 (UTC)
==Controversiality==
Why isn't there any discussion of why state machines could be a bad idea? This code could be a million times clearer if it was allowed to explicitly pend on events.
|