Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

the resulting C code is unreadable, which turns maintenance into a nightmare.

I've been doing embedded development for a few years and I love our state machines, they're a pleasure to work with. Maybe yours just sucked.



I feel the same .. all my state machines are lovely. There is nothing quite so rewarding as making an:

    enum { 
        APP_START,
        APP_INIT,
        APP_DO_TASK_A,
        APP_DO ..
        APP_FREE,
        APP_QUIT
    }
.. the center of your applications world! ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: