@TheoConfidor well, a notification should be able to be sent on its own. Simply move the save method to Notification's interface.
Yegor suggested a Source/Target naming for the Observer pattern. Perhaps that will work here.
Hmmm. I like the idea of a Notification being able to send itself. That raises two further questions. 1) How do I handle dependency injection for the Notification object, since most notification users want a very simple API? 2) What should I name the simple data structure that gets sent across the wire using RPC (currently it is called Notification, and contains three fields)?
1) Interfaces 2) Notification seems fine to me. Probably RPCNotification that implements Notification interface
@yegor256 Will the David West interview still be published today?
@adilosa hope so, almost done...
hey all, I'm trying to write a few words about inheritance and can't. I don't know whether it's a bad thing, an OK thing or a good thing... what do you think?