4 ms·
> I think a bigger threat is event driven code which IMHO is notorious for making things happen in unexpected order. What do you mean by unexpected order? I fi
by zzzcpan 12y ago
> I think a bigger threat is event driven code which IMHO is notorious for making things happen in unexpected order.
What do you mean by unexpected order? I find event driven code to be the easiest to understand and maintain.
Typically, you will be forced to specify order explicitly, i.e. nesting callbacks for sequential execution or not for parallel.
- phkahler 12y ago>> What do you mean by unexpected order? Events are find if your app is stateless (boring). Otherwise you may get events when things are not ready for them. You can get around that with lots of checking, or perhaps building a nice OO system underneath may help. I have a hard time explaining this because it can be subtle. See the Therac 25 for an example. http://en.wikipedia.org/wiki/Therac-25 http://en.wikipedia.org/wiki/Therac-25