Marco.org

Aug 22 2008

Argh, PHP

I love dynamic typing, but…

$a = "look I'm just a string";
$b = 0;
if ($a == $b) { return "come on, really?"; }

This has caused two separate bugs of mine this afternoon, both of which took way too long to find.

Creative Commons License All original content is licensed under the Creative Commons Attribution 3.0 U.S. License except that which is quoted from elsewhere or attributed to others. In short, you may reproduce, reblog, and modify my content, but you must provide proper attribution.