Welcome to my infrequently maintained and often forgotten blog. My name is Tom Butler, I'm a 27 year old web developer with an interest in OOP, coding best practices and a huge advocate of convention over configuration and separation of concerns. I started this blog to reduce the need to repeat myself in discussions regarding MVC, however the response has been very positive over the years so I've expanded it gradually to other topics which have sparked my interest. Than you all for the very positive response.
- MVC In PHP
- 08/11/2013 - Why I don't have a comments section
- 24/10/2013 - Constructor Injection vs Setter Injection
- 17/10/2013 - The $this variable isn't as Object-Oriented as you think it is
- 04/09/2013 - Finding creative ways to break encapsulation isn't clever
- 12/04/2013 - PHP: PSR-0: Pretty Shortsighted, Really
- 18/03/2013 - Using a Dependency Injection Container to simplify Routing in an MVC framework
- 14/03/2013 - Dice - A minimalist Dependency Injection Container for PHP
- 23/01/2013 - PHP: Annotations are an abomination
- 14/12/2012 - The importance of getting terminology correct
- 10/10/2012 - Handling dependencies / The "courier" anti-pattern.
- 02/10/2012 - Empty interfaces are bad practice
- 12/08/2012 - Why static methods/variables are bad practice
- Dealing with large amounts of checkbox data in PHP/MySQL
- Using factories to abstract object creation
- ...and what I have had many requests for: A complete MVC example with database access and adding/updating records.
- MVC In PHP
- Dependencies in code
- Best Practices
- Programming Philosophy