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.
Comments
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.