Posts Tagged ‘ugly names’

As much as I love WordPress…

Saturday, January 24th, 2009

Seems that some WP developers are fans of refuctoring.

if ( ($fQ=strpos($Fid,'"'))!==false )
    $Fname = sanitize_title_with_dashes(substr( $Fid, $fQ+1, strpos($Fid,'"',$fQ+1)-$fQ-1 ));
### wrapped in <p> ?
   $p_offset = ($p_close < $p_open) ? $a-(strlen($part_content)-$p_open) : $a;

Argh. Guys, seriously, how about some objects? How about some readable variables? How about instead of nesting function calls and using ugly ternary operators… ugh. Nevermind.

3rd generation MemCached

Monday, October 27th, 2008
$banner->mem->mem->mem->cache_dir = "path/to/cache/dir";

Not confusing at all, no sir!.