PHP JSON removed in PHP 5.5

Amazing: Bear in mind this is only going to affect certain Linux distros, and can easily be remedied via PECL obviously… But still…


The Volvo of calling functions: A lesson in defensive coding.

if (is_object($x) && is_object($y)){
    if (method_exists($x, "isValid") && method_exists($y, "isValid")) {
        if ($x->isValid() && $y->isValid()){
            doSomething($x, $y);

Time to update all the unit tests

I remember a time when you wrote code for the sake of making a thing that did something
Now we just make code to check if something else does something
Sometimes that thing that’s supposed to do something doesn’t even exist at all
So we “mock” it
I tell you
It’s a mockery of the entire profession

drops the mic