Archive for October, 2007
5 Things I hate about PHP
Articles on why PHP sucks are fairly common (PHP is a really easy target). So rather than repeat what’s already been said (lack of namespaces, function naming, and arugment positions, etc), I though I’d try and come up some more obscure ‘features’ and ‘bugs’ in PHP that I hate. create_function() // Actually creates a new [...]
WoW Update
Wow, almost two weeks since my last WoW post. In short: Respect to Arcane/Fire, for (hopfully) better mana management Frostsabre mount from Darnassus Picked up Boots of Blasphemy Went to Karazhan with my guild Gankers Inc. Wasn’t a great result, but was fun gankers-attumen
Fun with ‘anonymous’ functions in PHP
Just some fun with anonymous functions in PHP (which are surprisingly rare due to silly syntax, and a buggy implementation) <?php class LambdaException extends Exception {} class Lambda { private static $cache; public static function Create($functionString) { [...]
explodeTree
While reading a blog post by Kevin Van Zonneveld’s on converting arrays to trees in PHP, I was shocked to see his approach to the problem. To paraphrase a popular quote: Some people, when confronted with a problem, think“I know, I’ll use eval.” Now they have two problems. Below is the same function, but using [...]
qpsmon v0.1
This is a simple script that will print the average qps (using a specidied peri0d) for one or more MySQL databases. If doesn’t have many practical uses, but it’s fun to watch when running large imports or exports. Screenshot <?php /* qpsmon.php v0.1 This is an (extremely) simple script that will [...]
AYBABTU
#544203 <atrus> i worked on a project once where somebody named variables defined in various places explicity so on one line of code, it showed up as: <atrus> function_name($all, $urBase, $rBelong, $toUs); <atrus> closest i’ve ever come to manslaughter Expect to see this in Bergamot real soon
