The framework you learn doesn’t really matter.

Towards the end of my talk at phpDay in Verona, I was asked by two developers which framework I thought they should learn: Symfony or Laravel. I understand the pressure that developers feel like they’re under to learn a framework, and to somewhat “predict the future” by figuring out what is likely to be popular in PHP for the next few years.

But my answer to them wasn’t what they expected. I told them that if they were new to PHP, that they should focus on learning PHP.


Monday, May 19th, 2014 @ 2:31 pm | Comment (8) | Categories: Best Practices, PHP

Unit testing is dead? Hardly.

Despite what His Majesty, David Heinemeier Hansson may have said, unit testing is by no means dead. And, in fact, system testing is no more a complete testing strategy than 100% test coverage with unit tests. Let me explain.

Test Driven Development (TDD) is a philosophy that asserts testing is so important that the tests should be written first, to emphasize the design of the code. The idea is that by writing a failing test, and then writing code that passes that test, you end up with an overall better architecture.


Wednesday, April 23rd, 2014 @ 8:09 am | Comment (5) | Categories: Best Practices, PHP, Testing

The true business cost of technical debt

In many development shops where I’ve worked, there’s a consistent struggle between developers who want to “do it right” and management that wants to “just get it shipped.”

The problem stems from the pride developers feel in their work coming up against the business realities faced by managers and company leaders, who are focused on making sure everyone gets a paycheck each Friday.


Tuesday, March 11th, 2014 @ 7:00 am | Comment (2) | Categories: Software Development, PHP, Best Practices

Dealing with duplicated code

We’ve all seen it: we’re working along, and we come across code that just has a feel to it. It’s like déjà vu. You’ve seen this code before. You open another file – sure enough, there it is. The same code. Almost line for line.

In large code bases, it’s likely that there are dozens if not hundreds of similar behaviors that have to be completed more than once. And as code grows, is worked on by multiple developers, or just for the sake of speed, the same code gets copied or rewritten over and over again in different places.


Wednesday, May 15th, 2013 @ 7:00 am | Comments (0) | Categories: Best Practices, PHP 5, Object-Oriented Development, PHP

Making better object oriented design decisions

Last week I finished up the first section of The Object Oriented PHP Masterclass. The class was great, and I learned about as much from my students as they learned from me. One of the most common questions I got from my students was “how do I make decisions about how to design my object oriented applications?” This question got me thinking about object oriented design.

The syntax of object oriented PHP is relatively straightforward…


Friday, May 10th, 2013 @ 7:00 am | Comments (0) | Categories: Best Practices, PHP 5, Object-Oriented Development, PHP

Avoiding object oriented overkill

In the second live session of my object oriented design class, The Object Oriented PHP Masterclass, I show my students domain modeling, both with slides and with a live coding demonstration.

In my demonstration, I show them how I break the single model they’ve been using into three component parts: a value object, a data layer object (usually that talks to the database), and a gateway object that stands between the other two.


Wednesday, May 1st, 2013 @ 7:00 am | Comment (3) | Categories: PHP, Refactoring, Best Practices, PHP 5, Object-Oriented Development, Learning

« Older Entries Newer Entries »

Copyright © 2023 by Brandon Savage. All rights reserved.