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

Those are called callbacks, we use those everywhere. If you don't want to use callbacks, you can use something like a publish-subscribe pattern instead so that X doesn't need to be indirectly linked to B through A and can publish directly to X.


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

Search: