Go to Post The only competition we have here, folks, is the one that's in March and April. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-08-2007, 20:02
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
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
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
__________________
Aren't signatures a bit outdated?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-08-2007, 20:33
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
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 30-08-2007, 23:09
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
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 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
  #5   Spotlight this post!  
Unread 31-08-2007, 18:08
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: 949
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
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 06-02-2007 16:48
2006 pneumatics rules - my rant Jared Russell Pneumatics 3 06-02-2006 02:22
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
[moderated]: 2005s big issues - post solutions (and a little rant on the side) Daniel Brim General Forum 1 30-03-2005 21:36
Rant!! MarkF Chit-Chat 4 26-02-2003 17:45


All times are GMT -5. The time now is 14:52.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi