You don't need that module package

3rd January 2019 11:55 pm

Lately I've seen a number of Laravel packages being posted on places like Reddit that offer ways to make your project more modular by…

Why bad code is bad

2nd January 2019 11:00 pm

This may sound a little trite, but why is it bad to write bad code? Suppose you're a client, or a line manager for a team of developers. You…

Decorating service classes

6th December 2018 6:34 pm

I've written before about using decorators to extend the functionality of existing classes, in the context of the repository pattern when…

Simplify your tests with anonymous classes

20th October 2018 1:48 pm

Anonymous classes were added in PHP7, but so far I haven't made all that much use of them. However, recently I've been working on building a…