Don’t be STUPID, Grasp SOLID
Anthony Ferrara is a Senior Architect for NBC Universal, specializing in Object Oriented Design, Application Architecture and Highly Scalable Web Applications. He also has experience in Web Application Security and PHP Internals. He is a contributor to multiple Open Source projects, as well as the PHP community as a whole. He is also a former Core Team Member and Development Coordinator for the Joomla! project, as well as a former leader of its Security team. You can follow his blog at blog.ircmaxell.com or on Twitter at @ircmaxell.
Don’t be STUPID, Grasp SOLID
When it comes to Object Oriented Programming, there is no shortage of guidelines and principles for how to properly design an OO system. There is also no shortage of acronyms to describe these principles: DRY, SRP, LSP, LoD, ISP, OCP, etc. However, there are two acronyms that really shine through to describe how to, and how not to do OOP well. The two acronyms are SOLID and STUPID (respectively). We’ll discuss some of the underlying principles of Object Oriented Programming, and how we can learn from the principles identified by each of these two acronyms. Additionally, we’ll explore some additional anti-patterns of Object Oriented Design and how they can be avoided. Finally, we’ll talk about how all of this applies to our every day development tasks, and the real-world benefit these design principles provide…