Guard Clauses are one of my favorite little tricks that allow simplifying code. A guard clause is an if statement…
Several tricks and heuristics that I apply to write easy to understand functions keep coming up when I look at…
Several tricks and heuristics that I apply to write easy to understand functions keep coming up when I look at…
DRY, standing for Don’t Repeat Yourself, is a well-known design principle in the software development world. It is not uncommon…
Alternative title: Dan North, the Straw Man That Put His Head in His Ass. This blog post is a reply…
Last week I attended the 2016 edition of the PHP Unconference Europe, taking place in Palma De Mallorca. This post…
I’ve decided to start a series of short blog posts on how PHP gets in the way of creating of well…
Earlier this month, PHPMD 2.3 was released. It contains several new features, including two that I added primarily for use…
PHPCS (PHP Code Sniffer) detects violations against a specified coding standard. PHPMD (PHP Mess Detector) is a similar tool, though…