Reputation: 46178
I see all frameworks have their events implementation:
I see we can do all without any event, and I see we can heavily rely on it (as Symfony maintainers seem to tend for)
Are there common rules / global good practices for their use ?
Where should we [use|not use] events ?
I'm excluding the cases where we need to do real time interaction between server and client or user and application with javascript for example (also maybe I should only talk about web applications)
Upvotes: 0
Views: 64
Reputation: 821
Examples:
The main disadvantage in my opinion is that event driven code is harder to debug. You must do some research to find out which listeners have been called and the order in which they have been called.
Upvotes: 1