Theory #PHP #OOP #SOLID #Perfection #Judging
Jun 10, 2011 - no comments
Lukas Kahwe Smith wrote an article about keeping the parameter order intact when overloading the parent Exception’s constructor. He feels that by rearranging the parameter order the child no longer follows the contract of the parent. This is confusing and an ‘OO no-no’, according to him. In another recent article Keith Casey talks about this issue as well.
Read more »Programming #OOP #Consistency #Perfection #Encapsulation #PHP
May 18, 2011 - no comments
There are various ways to access the properties of an object. Is one way better than another? What constitutes a better way? Why should anyone care?
Read more »