Programming #Principles #Craftsmanship #SOLID
Feb 12, 2012 - 4 comments
Almost all code we write builds on code others wrote. Whether you use some micro or macro framework, company code base or open source library, code is seldomly written in a vacuum. This can lead to several problems, for which several solutions have been devised. How can we structure our software to prevent dependency problems? This article describes common pains and symptoms of bad dependency management and common techniques for dealing with project-wide dependencies.
Read more »Programming #SOLID #OOP #PHP #Architecture #Principles
Aug 10, 2011 - 8 comments
Oh how we love acronyms. We’ve discussed a lot about writing a class, but we haven’t talked about writing classes yet. How do you know if your solution is right? It is not enough to have a working program. SOLID is a set of principles that define severable measurable properties your architecture should have at least, in order to be dubbed right.
Read more »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 »