View Single Post
  #3   Spotlight this post!  
Unread 31-08-2007, 01:09
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Sloppy code (rant)

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("\"","&quot;",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;
}
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.

Last edited by artdutra04 : 31-08-2007 at 01:15.
Reply With Quote