shii-chan is the most advanced peice of software on the planet
Name:
Anonymous2007-08-05 21:40 ID:knGxxeKT
I opened up the source for Shiichan for kicks and I swear my eyes started bleeding. Not only is the source unbelievably messy (MIXING TABS AND SPACES SHOULD BE A CAPITAL CRIME), but it incorporates some of the stupidest coding practices I've ever seen.
Prime example of idiocy: foreach ($postarray as $apost) { list($start,$end) = explode('-',$apost); if (strpos($start,'l') === 0) {$start = ($numposts - intval(substr($start,1)))+1; $end = $numposts;} if ($start < 1) $start = 1; if ($end == "") if (strstr($apost,"-")) $end = $numposts; else $end = $start; if ($end > $numposts) $end = $numposts; if ($start > $numposts) $start = $numposts;> if ($start <= $end) { for ($i = $start; $i <= $end; $i++) {> list($name, $trip, $date, $message, $id, $ip) = explode("<>", $thread[$i]);> if ($trip) $trip = "#".$trip;> if ($isitreadphp) $return .= PrintPost($i, $name, $trip, $date, $id, $message, $postfile, 1, $boardname); else $return .= PrintPost($i, $name, $trip, $date, $id, $message, $postfile, $threadid, $boardname);> }> } else {> for ($i = $start; $i >= $end; $i--) { if ($end < 1) $end = 1; if ($start > $numposts) $start = $numposts; list($name, $trip, $date, $message, $id, $ip) = explode("<>", $thread[$i]); if ($trip) $trip = "#".$trip;> if ($isitreadphp) $return .= PrintPost($i, $name, $trip, $date, $id, $message, $postfile, 1, $boardname); else $return .= PrintPost($i, $name, $trip, $date, $id, $message, $postfile, $threadid, $boardname); } } }