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

Though async event driven programming is somehow confusing in the beginning, there are some idioms that could make your code more comprehensible.

My experience (mostly in perl - EV,AnyEvent, etc.) is that combining evens with finite state machines gives more structured code, with smaller functions that interact in predefined manner.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: