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);
        }
    }
}

Startup Claims 80% Of Its Facebook Ad Clicks Are Coming From Bots – TechCrunch

This is quite the claim, Facebook is supposedly padding the number of clicks their ads actually generate, and billing for it! Meanwhile, their stock is still doing some crazy things. Facebook really needs to mature itself quickly, this sort of stuff really doesn’t reflect the maturity one would expect of a company with their insane valuation.