
31-08-2007, 18:08
|
|
Team 2021 Captain
AKA: Chris Davidson
 FRC #2021 (FA Robotics)
Team Role: Mentor
|
|
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
|
|
|
Re: Sloppy code (rant)
Quote:
Originally Posted by artdutra04
PHP Code:
// Or when programmers write like entire programs on a single line...
if (isset($display_page) && $display_page != NULL || !(thisFunction() && is_numeric($another_variable)) { echo "<html><head><title>Meeting: ".$meeting."</title></head><body><h1>".$meeting."<p>Time: " . date("H:i:s l, j F, Y", strtotime($date.' '.$time)) . "</p><p>Meeting agenda:".str_replace("\"",""",str_replace("'","'",strip_tags(nl2br($_POST['agenda']),'<p><a><b><i><h1><h2><pre><ul><li><br>')))."</p></body></html>"; } else { echo "This is not an HTML page"; $display_page++; } // I cringe after writing random code that bad...
EDIT:
Code:
// Or when
if (....) {
the indenting;
is not uniform;
} else if (
the brackets &&
parenthesis
)
{ follow no;
sort of discernible;
logic;
or rational thought;
is_if->they_are_testing();
the lenient w h i te s p a c i n g rules;
of the compiler;
}

|
All I have to say is...My eyes! they burn!
|