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

Like I said in my nodeconf talk. "Callbacks are Hard... in C!" JS callbacks are a very elegant tool for a very hard problem. In node you have the power and responsibility to manually decide when your thread of execution stops and when is resumes. That's what is hard. Coroutines are another tool for the same problem, but they come with their own set of problems and complexities. Callbacks at least are very simple to understand and reason about.


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

Search: