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

Right. What the author of the article ignores is the tradeoff you make when you spread triggered behavior all over your code. When something goes wrong, debugging is a lot more difficult and race conditions sprout up unexpectedly.

Event driven, decentralized programming requires new rules and discipline in how resources are accessed. Sometimes a big ugly function where everything happens is a lot easier to deal with than a wild goose chase through a dozen different places in the code (and a cascade of subsequent triggers).



Agreed. And it doesn't have to be ugly, either.




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

Search: