Getters/Setters. Evil. Period. 👺
There is an old debate, started in 2003 by Allen Holub in this Why getter and setter methods are evil famous article, about whether getters/setters is an anti-pattern and should be avoided or if it is something we inevitably need in object-oriented programming. 🕸
The gist of the following text is this ✨ : getters and setters is a terrible practice and those who use it can't be excused. ❌
Again, to avoid any misunderstanding, I'm not saying that get/set should be avoided when possible. No. I'm saying that you should never have them near your code. 🚫
https://t.me/pgimg/163
[ Article ] : kutt.it/gset
〰〰〰〰〰〰
#BestPractices
@ProgrammingTip
Post #483
14.2K