"Don't call us, we'll call you" ☎️
Relevant when you are writing a class/component that must fit into the constraints of an existing framework.
You implement the interfaces, you get registered. 👤
You get called when the time is right. 📞
🔹🔸🔹🔸
By way of an example, a typical ASP.NET Web Form might have in its codebehind page event handlers to respond to Page_Load and Button_Click events. ⚡️
An ASP.NET developer writes code to respond to these external framework events, instead of owning the execution of the web server and making all decisions and method calls accordingly. ✅
[ Article ] : http://bit.do/holprin
https://t.me/pgimg/39
〰〰〰〰〰〰
#Principle
@ProgrammingTip