Go to Post You can never take enough precautions when it comes to safety. Please, be prepared for anything. - Tom Bottiglieri [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
Innovation First International, Inc.
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Delphi
ADVERTISEMENT

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-30-2007, 07:02 PM
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #2586
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Holly, MI
Posts: 715
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan Send a message via Skype™ to JBotAlan
Sloppy code (rant)

(Begin Rant)

I am *so sick* of professional programmers and their sloppy code.

Today, I spent 4 hours re-installing a web plugin throughout my school building that failed to install the first time. I don't care that it didn't install okay--I understand that if it tries to install in a reduced-privileges environment, it might fail trying to write a registry key or a system file. I don't fault it for failing. What I do care about is the error message it gave me: "Unspecified error."

WHAT!!?? The programmer that compiled the software wrote an error handler because he knew the code might fail. That's ok. However, he should be able to read the documentation for the function he is calling and handle each and every case of failure. And if the error code does not match any of the pre-programmed states, don't just pop up an error saying "Unspecified error", say "Unknown error code, cause #" and the error code. Give me a tech support number to call, and when they hear me read the error message, communicate with the programmers. Figure out what might be going on. Don't make me roll back to an older version because of a vague error message.

After fixing that mess, I came home and tried to log into GMail. However, as soon as I type my details in and hit Enter, I am forwarded not to my mailbox, but to a blank white screen. Why? If the JavaScript on my side isn't getting any data, *tell me*. I'm not stupid. Don't just park there at that beautiful snowy white screen. Give me a meaningful error message describing why you stopped. Help me fix it.

And then, to top that all off, my mom is trying to run some of her addicting games. They crash, giving me a "Could not create primary window" message. It has an OK box. That's all well and good when the box has focus, but no, another window does. I try to give the error box focus with my mouse, but the game has already called upon the Windows API to hide my mouse pointer. I ALT-TAB wildly, to no avail. I press CTRL-ALT-DEL, and the task manager pops up, but my mouse pointer is still invisible. I scoot the mouse around, and eventually stop the game task. A quick duck into the start menu yields the shortcut to play the game that just crashed, but no readme. I get online, but cannot find any help topic relevant to what just happened. What am I supposed to do now? The system specs blow away the minimum, and the error message is less than descriptive...so what now?

People, please get it together. Maybe I'm preaching to the choir here, but if you do any sort of professional coding, please handle your exceptions properly. Crash gracefully and descriptively, not ugly and vague. Help the user out. Don't confuse them. Search your code. Any "Unspecified error" lines in there? Fix them. It just might make you some business.

(To add a touch of irony, I couldn't even make this post right away because my Intel wireless app was suddenly "Unable to connect" to my router. With no reason. And then it just connected. What. The. Heck. )

(End Rant)

JBot
__________________
This post brought to you by Jacob Rau.
Junior Electrical Engineer/Computer Engineer at Michigan Technological University
Former Programming/Electrical mentor for FRC3418 (Robo Riot)
Former Programming mentor for FRC2586 (Copper Robotics)
Alumni programmer of FRC68 (Truck Town Thunder)
I can help with programming problems. Let me know if you need help. (I don't bite )
Reply With Quote
  #2   Spotlight this post!  
Unread 08-30-2007, 07:33 PM
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Is wishing HE had summers off...
FRC #1676 (Pascack PI Oneers)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Montvale NJ
Posts: 5,546
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Sloppy code (rant)

Quote:
Originally Posted by JBotAlan View Post
(Begin Rant)
I am *so sick* of professional programmers and their sloppy code.
By (my) definition, professional programmers do not produce sloppy code. They may be getting paid for it, and even making a living on it, but they are neither professional or, IMHO, programmers. I have a name for them, but this is a nice family-friendly site.

I see this all the time, and share your frustration.

When I write code, there are no errors, so I don't need error handlers.

(believe me? I thought not)

Don
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 08-30-2007, 10:09 PM
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins Send a message via Skype™ to EHaskins
Re: Sloppy code (rant)

Quote:
Originally Posted by Don Rotolo View Post
When I write code, there are no errors, so I don't need error handlers.

(believe me? I thought not)

Don
lol

I've actually talked to people who believe that.

JBot, I totally agree with your rant.

Eric
__________________
Eric Haskins KC9JVH
Reply With Quote
  #4   Spotlight this post!  
Unread 08-31-2007, 12:09 AM
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: 2,926
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;
}
__________________
Arthur Dutra IV
Robotics Engineer, VEX Robotics, Inc.
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon

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

Last edited by artdutra04 : 08-31-2007 at 12:15 AM.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-31-2007, 05:08 PM
chris31 chris31 is offline
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: 950
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31 Send a message via Skype™ to chris31
Re: Sloppy code (rant)

Quote:
Originally Posted by artdutra04 View Post
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;
}
All I have to say is...My eyes! they burn!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 02-06-2007 03:48 PM
2006 pneumatics rules - my rant Jared341 Pneumatics 3 02-06-2006 01:22 AM
problems using gyro/adc code with camera default code tanstaafl Programming 7 01-22-2006 10:09 PM
[moderated]: 2005s big issues - post solutions (and a little rant on the side) Daniel Brim Moderated Discussion 1 03-30-2005 08:36 PM
Rant!! MarkF Chit-Chat 4 02-26-2003 04:45 PM


All times are GMT -5. The time now is 07:59 PM.

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School