beginnerDesign Patterns~55 min
Notification Dispatcher (Factory Pattern)
Callers should say send this on email and never touch a class name. The Factory pattern puts that decision in one place. Build concrete notifiers, a simple factory function, a registry-driven factory you can extend without editing, then a service that dispatches and fans messages out across many channels at once.