Worst Programming Gaffes

Reply

Join Date: Aug 2008
Posts: 18
Reputation: l4z3r is an unknown quantity at this point 
Solved Threads: 0
l4z3r l4z3r is offline Offline
Newbie Poster

Worst Programming Gaffes

 
0
  #1
Sep 15th, 2008
Well, I think I've just had my worst programming gaffe. I write a 600 line program using linked lists and compile it. In addition to the usual missing ";" and "}", I continuously kept getting a "x not declared" error whenever I tried to access a variable from a pointer using the "-->". I start sifting through lines and lines of code to make sure that I hadnt done something silly and not declare the structures as global or something. After 3 hours of code sifting, repeated compilings and much internet surfing, I finally found the problem.

Now, wouldnt you say it is embarrassing for a programmer having used linked lists and pointers for about 1.5 years to have used "-->" instead of "->"???


P.S. I bet you didnt notice it either when I used it in the first para.

P.S.2 I bet you'll reply: "I totally saw it in the first para itself. MUAHAHAHAAA"
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 8,311
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 824
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Worst Programming Gaffes

 
1
  #2
Sep 15th, 2008
>Now, wouldnt you say it is embarrassing for a programmer having used linked
>lists and pointers for about 1.5 years to have used "-->" instead of "->"???
When I've been writing C and C++ for well over a decade and still type mian instead of main over 60% of the time, I'd say you have no cause for embarrassment.

Now what is embarrassing is when you leave out a piece of code for development purposes (ex. not deleting a file so you don't have to constantly replace it) and then forget to add it before releasing a production version. Performance and behavior bug reports start flying in, and the bug is traced back to you. Yep, that's totally embarrassing.
In case you were wondering, yes, I do hate you.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 18
Reputation: l4z3r is an unknown quantity at this point 
Solved Threads: 0
l4z3r l4z3r is offline Offline
Newbie Poster

Re: Worst Programming Gaffes

 
0
  #3
Sep 15th, 2008
ah lol. now that is as bad as mine. Now i can sit back and enjoy my beer without visions of shame playing in my mind. :p
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 53
Reputation: TheBuzzer is an unknown quantity at this point 
Solved Threads: 0
TheBuzzer TheBuzzer is offline Offline
Junior Poster in Training

Re: Worst Programming Gaffes

 
0
  #4
Sep 15th, 2008
Well use java. You won't get anymore pointer problems with java. Unless java does have pointers. Ya. I get confused sometimes when coding in differnet programming languages. Trying to use functions that are not there or variables the wrong way.
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 2,376
Reputation: GrimJack will become famous soon enough GrimJack will become famous soon enough 
Solved Threads: 17
Featured Poster
GrimJack's Avatar
GrimJack GrimJack is offline Offline
Nearly a Posting Maven

Re: Worst Programming Gaffes

 
0
  #5
Sep 15th, 2008
I put a print statement inside a loop instead of after it - the operator called me after he loaded the 2nd box of paper, sigh.
Imagine a world without hypotheticals....
“Remember this distinction: The Donner Party was on track. They were not on schedule."
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 3,309
Reputation: Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute Nick Evan has a reputation beyond repute 
Solved Threads: 337
Moderator
Featured Poster
Nick Evan's Avatar
Nick Evan Nick Evan is offline Offline
Cenosillicaphobiac

Re: Worst Programming Gaffes

 
0
  #6
Sep 16th, 2008
My favorite mistake in C/C++ used to be this:
if (something = 1)
{
   // do stuff
}
else
  //something else

And then be like "Why the hell is this always true??". If you had this problem a few times you'll never forget that = != == .
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,191
Reputation: stephen84s is a name known to all stephen84s is a name known to all stephen84s is a name known to all stephen84s is a name known to all stephen84s is a name known to all stephen84s is a name known to all 
Solved Threads: 127
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: Worst Programming Gaffes

 
0
  #7
Sep 16th, 2008
My worst day was when I once had not correctly handled a Database insert exception (instead of aborting, I was actually retrying sending the message)and I kid you not, it ended up sending 50000+ SMS messages for just one message ... sheesh . . . . .
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 206
Reputation: grumpier has a spectacular aura about grumpier has a spectacular aura about 
Solved Threads: 31
grumpier grumpier is offline Offline
Posting Whiz in Training

Re: Worst Programming Gaffes

 
0
  #8
Sep 16th, 2008
Stepping through a MS-DOS based program in an IDE trying to find the source of a bug. Next thing: the computer did a warm boot, but was unable to come up again because it couldn't find a system drive.

After restoring from backup (and being very thankful I had a backup) an examination of the offending code revealed an invalid pointer operation that, it happened, executed the DOS interrupt for reformatting disk tracks......
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 18
Reputation: l4z3r is an unknown quantity at this point 
Solved Threads: 0
l4z3r l4z3r is offline Offline
Newbie Poster

Re: Worst Programming Gaffes

 
0
  #9
Sep 16th, 2008
lol at ^. made me laugh, it did
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,522
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 127
William Hemsworth William Hemsworth is offline Offline
Posting Virtuoso

Re: Worst Programming Gaffes

 
0
  #10
Sep 16th, 2008
I have made a few mistakes when programming, probably one of my worst, and I still can't quite remember how I did it, but I flooded the desktop with about 10,000 empty files while making a program that splits one file into many smaller ones. Deleting them was even harder, I had to create a seperate program to delete each one (as you coulden't just select the files you want to delete as the icons went off the side of the monitor)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Geeks' Lounge Forum


Views: 808 | Replies: 9
Thread Tools Search this Thread



Tag cloud for Geeks' Lounge
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC