When creating events, we should decouple the trigger from the action. TL;DR: Name your functions according to what happened. Problems Observer Pattern violation Coupling Solutions Name the events after "what happened", not "what you should do"...

Markdown supported · ⌘↵ to post
No responses yet.