Go to Post When the world gives you lemons make lemonade serve it at your press conference to expand the program. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 22-04-2008, 17:50
mgreenley
 
Posts: n/a
Re: Silly Programming screw ups (funny)

I'll contribute with probably my least serious, and most funny programming error I've encountered (outside of FIRST, but we were working in C/C++).
My freshman year, I took an introductory computer science class, and our final project was to design and code a remake of Tetris. We've been working on this project for a little while and it seems as if all the major flaws (that we found) were out of the code. Our team leader maintains this Windows independence, and will only work on his laptop, or, if he has to, in notepad (since MS Visual Studio is "evil" in his eyes). We finish work on the code, and GUI, compile everything, and...it doesn't work.
Try again...
...And it still doesn't work...
...We decide to each look over our parts of the code since the error messages were being less than helpful in figuring out why the code wasn't working...
...Try again...
...Yet another failure...
...Our experienced programmer gives up, calls it a day and checks in the code. I check it out for the rest of the team to work on for a little bit, open MS Visual Studio...
...And it immediately highlights the little " /* " at the top of the page that the senior team member forgot to delete when he took out comment header that described the beta process we had gone through.


We had inadvertently, commented out our declarations and main() since the next instance of a " */ " was below the code. We had used // comments everywhere else.


Proving that notepad, while incredibly useful, is not always the best program to use.

Last edited by mgreenley : 22-04-2008 at 17:54. Reason: Making a grammatical fix.
  #32   Spotlight this post!  
Unread 22-04-2008, 19:05
Shadow503's Avatar
Shadow503 Shadow503 is offline
printf("\r\n Moo!");
no team
Team Role: Human Player
 
Join Date: Mar 2007
Rookie Year: 1991
Location: na
Posts: 92
Shadow503 will become famous soon enoughShadow503 will become famous soon enough
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by slavik262 View Post
This is horribly true. We get the bad rap no matter what the problem is.

The funniest thing to me this year:

While in pits, I was often told to "fix my code" so that the robot would work. My response to this statement was "fix your wiring." 95% of the time our electrical guy would come out with a loose wire or a bad relay, and everything would work beautifully the second he fixed it (of course until the next "code" problem, that is) .
Yes, we are always blamed. Although the problem is not often our fault, we can almost always fix it, so we receive the blame . This year I had to compensate for a messed up control system and the fact that electrical wired up the motors backwards.

The other programmer working with me once threw this into my code while I wasn't looking:
Code:
this line will break your code xD;
It was one of my easier compile errors to fix. It's too bad we don't code in Python, otherwise that would have probably compiled if I included
Code:
import english
  #33   Spotlight this post!  
Unread 23-04-2008, 00:20
Cow Bell Solo's Avatar
Cow Bell Solo Cow Bell Solo is offline
No Stolte No
AKA: Chris
FRC #2194 (Fondy Fire)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Minnesota
Posts: 381
Cow Bell Solo is a jewel in the roughCow Bell Solo is a jewel in the roughCow Bell Solo is a jewel in the roughCow Bell Solo is a jewel in the rough
Send a message via AIM to Cow Bell Solo Send a message via MSN to Cow Bell Solo Send a message via Yahoo to Cow Bell Solo
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by slavik262 View Post
This is horribly true. We get the bad rap no matter what the problem is.

The funniest thing to me this year:

While in pits, I was often told to "fix my code" so that the robot would work. My response to this statement was "fix your wiring." 95% of the time our electrical guy would come out with a loose wire or a bad relay, and everything would work beautifully the second he fixed it (of course until the next "code" problem, that is) .
And then some of us get blamed for both because I'm the lead on both, 1 out of one for program and 1 out of 2 for electrical. Even if I'm not there its my fault(that is if I am never there cause I always am)

Hint for beginners, make sure the cable is off the robot when going to test hybrid after downloading new changes. Check once, twice, and trice. And never tighten the pins down. You'll thank me later
__________________
Who let the Blue Smoke Out
Team 2194 Mentor - 2012-Present - http://fondyfire.com
Team 2207 Alumni - http://whitebearlakerobotics.com
Iowa FIRST LEGO League Planning Team Member - 2010-Present - http://www.isek.iastate.edu/fll
FIRST LEGO League volunteer - 2008-Present

2008: MN Regional Quarterfinalists, Website Excellence
2009: MN North Star Quarterfinalists, recognized for safety, Website Excellence
  #34   Spotlight this post!  
Unread 23-04-2008, 00:26
Vikesrock's Avatar
Happy Birthday! Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by Cow Bell Solo View Post
And then some of us get blamed for both because I'm the lead on both, 1 out of one for program and 1 out of 2 for electrical. Even if I'm not there its my fault(that is if I am never there cause I always am)

Hint for beginners, make sure the cable is off the robot when going to test hybrid after downloading new changes. Check once, twice, and trice. And never tighten the pins down. You'll thank me later
Except that next year we are moving to a system that can be programmed wirelessly. Problem solved
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #35   Spotlight this post!  
Unread 23-04-2008, 00:54
lasereyes's Avatar
lasereyes lasereyes is offline
College Student Mentor
AKA: Farzin Fatollahi-Fard
FRC #2551 (Penguin Empire)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Novato, CA
Posts: 114
lasereyes is an unknown quantity at this point
Send a message via AIM to lasereyes
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by Uberbots View Post
2006:
not so much a programming error, but i was wearing a bright green shirt while programming the robot. I was tuning the camera at the time, and stood next to the goal. the robot went out, and looked like it had found the target, except it kept running towards it. So, i get out of the way and go towards the disable switch and the thing starts to follow me, and proceeds to chase me around our practice field, shooting balls at me while i attempt to get to the button.
funny thing is, it never shot balls as well at the goal as it did at me. ow.
Now I'm glad we didn't have any of those green lights this year. Something tells me the same thing would've happened to me...
__________________
FRC #2551 (FTC #646): Penguin Empire
2008 Rookie Team
2008 UC Davis Sacramento Regional Finalists (thanks to 1388, 1072, and 2390)
2008 UC Davis Sacramento Regional Highest Rookie Seed (#2!)

  #36   Spotlight this post!  
Unread 23-04-2008, 01:38
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: Silly Programming screw ups (funny)

This isn't robot code related, but it is FIRST related.

Last year (during my senior year of high school), while coding Team 228's content management system, I left a few lines of development code in place in one of my email notification scripts. This particular script would email everyone selected, every time a new event was added to the website.

To make sure that all the emails were being queued up and sent correctly, I added my own email address to the BCC headers of each email, and then I had the script send me another email when everything completed just fine. I tested the code running on my local Apache server with a few email addresses, and everything worked just fine. And then I forgot about those few lines of code.

Fast forward some time later, when I forgot to remove those lines of code when turning the development code into production code for deployment on 228's website.

I then proceeded to have my mailbox flooded with 58 emails every time a new event was added to their website. At the time, since I was busy with classes it took a week before I had the time to go and fix that issue.
__________________
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

世上无难事,只怕有心人.
  #37   Spotlight this post!  
Unread 23-04-2008, 07:50
fishgurl's Avatar
fishgurl fishgurl is offline
Registered User
FRC #0686
 
Join Date: Jan 2008
Location: Frederick, MD
Posts: 19
fishgurl is an unknown quantity at this point
Re: Silly Programming screw ups (funny)

We programed the auntonomus mode, finally, in our regonal comp. Our only problem was that it was driving the wrong way (into the wall), and did a major burn-out, tearing up some of the carpet. I don't think we got any points off, though.
  #38   Spotlight this post!  
Unread 23-04-2008, 11:37
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,675
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Silly Programming screw ups (funny)

Hah, I've got a story from this year that wasn't even my fault. We were debugging out feedback controlled lift in AZ, and had just rewired the feedback pot and screwed it down into the proper place. The soft limits in the code hadn't been reset yet and we hadn't verified that everything was going in the proper directions, so I had the electrical team pull the breaker for the lift as well as for the drive motors since we were testing on the floor. A match came up , so I told the electrical team to replace the drive breakers. We sent the drive team out with the robot and presumably without a functioning lift. They come back 15-20 minutes later after the match, and our coach says "Hey, the lift worked great that match."

After I recovered from my heart attack, we determined that the electrical team misheard me and replaced all of the 40 amp breakers instead of just the lift breaker.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #39   Spotlight this post!  
Unread 23-04-2008, 14:21
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Re: Silly Programming screw ups (funny)

I can't believe I forgot this one. Well, It turned out NOT to be a programming error which we initially thought it was but.
At St Louis we took the bot over to the practice field and were going to, you know, test. I reached in and turned on the robot and WHAM! The arm that we have on it SLAMS into my temple, making me go woosy for a second and I have since had major headaches (getting that taken care of).
One of our mentors swore it was a code problem even though the bot was in disabled mode through our disable switch box on our OI, and none of the joysticks were moved.
It turns out that our electrician accidentally wired a victor backwards so the arm got direct power and so when I turned it on, it went haywire.
It hurt, a lot.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
  #40   Spotlight this post!  
Unread 23-04-2008, 14:52
Viper37 Viper37 is offline
Registered User
AKA: Matt Howard
no team
Team Role: Alumni
 
Join Date: Jul 2006
Rookie Year: 2004
Location: San Diego
Posts: 157
Viper37 will become famous soon enoughViper37 will become famous soon enough
Send a message via AIM to Viper37
Re: Silly Programming screw ups (funny)

One time our programming mentor accidentally inverted the autonomous code, so it went the totally opposite way.

He was standing behind the robot holding the tether when we engaged it.

He got nailed, but got out of the way in time.

Everybody laugh, cheered, and yelled things like "MR. PAWLY, SUICIDE IS NOT THE ANSWER!"
  #41   Spotlight this post!  
Unread 23-04-2008, 15:29
SgtMillhouse648's Avatar
SgtMillhouse648 SgtMillhouse648 is offline
Registered User
AKA: Malhon Godwin
FRC #0648 (QC Elite)
Team Role: Engineer
 
Join Date: Apr 2006
Rookie Year: 2005
Location: Davenport, IA
Posts: 153
SgtMillhouse648 has a spectacular aura aboutSgtMillhouse648 has a spectacular aura about
Send a message via MSN to SgtMillhouse648
Re: Silly Programming screw ups (funny)

Well, in general, debugging is always the "funnest" part of season...i'm being sarcastic if you didn't catch that one...well, this year, I made a controller for our arm that I strapped to mine, and where I moved my arm, the robot's arm moved...well when we went to test the arm out on last year's robot, I couldn't understand why it was giving me something like -28451 for the degrees of the controller...spent an entire night trying to figure it out. come saturday, I realized what the problem was...I was using int's for my variables and some of my calculations went outside the limits...changed them to longs, and it worked perfect.
Then came the fun part...testing it on this year's robot.
for those of you who don't know, this year's robot's arm can rotate behind it, and with a FP driving it originally, can turn into a giant baseball bat as it's swinging around. Well, I had the m value reversed, so the robot was driving the arm the opposite way it was supposed to. needless to say, I replaced the lower section of the arm at 11:00 the night before our media days...
Malhon
__________________
2007-
Midwest Regional-
Regional Finalists with 1000 and 447
Rockwell Automation Inspiration in Control Award
Regional Woodie Flowers - Ed Wegscheid



  #42   Spotlight this post!  
Unread 23-04-2008, 15:33
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by gurellia53 View Post
OY! You never told us that
Heh. Yes I did.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

  #43   Spotlight this post!  
Unread 23-04-2008, 16:34
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by Shadow503 View Post
YThis year I had to compensate for a messed up control system and the fact that electrical wired up the motors backwards.

The other programmer working with me once threw this into my code while I wasn't looking:
Code:
this line will break your code xD;
It was one of my easier compile errors to fix. It's too bad we don't code in Python, otherwise that would have probably compiled if I included
Code:
import english
Hehe. Python. I should go out and learn it, to see what everybody is raving about.

Also,

Quote:
Originally Posted by Cow Bell Solo View Post
Hint for beginners, make sure the cable is off the robot when going to test hybrid after downloading new changes. Check once, twice, and trice. And never tighten the pins down. You'll thank me later
I took the screws out of our cables to prevent a nice suprise if somebody screwed the tether in. I think they're still sitting on my desk
__________________
  #44   Spotlight this post!  
Unread 23-04-2008, 17:31
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: Silly Programming screw ups (funny)

Well, let's see. During the 2007 season we spent several days trying to figure out why our camera wouldn't track the green light before finally realizing it was mounted upside down.

This year, we had an experience on the field that almost got us a penalty. Due to a short on the RC pins, we lost the 5V bus during one match, which runs the gear tooth sensors. During hybrid mode, the robot went forward full speed and slammed into the opposing alliance's wall.

We got a warning from the refs and determined that we could not fix the problem in time for the next match, so we flipped our disable autonomous switch, slightly disappointed.

The next hybrid mode, we were reminded that the disable autonomous switch also runs on the 5V bus. Fortunately we didn't get a penalty but the refs said we would get a yellow card if we did it again.
  #45   Spotlight this post!  
Unread 23-04-2008, 18:33
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Caņada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Silly Programming screw ups (funny)

One of my countless screw ups as a rookie coder was when I was coding for the encoders at one put I changed the sign one positive and one negative, since it was a tank drive, which is logical, and I turned it. First mistake was I left the cable in so it bulled the laptop, but I luckily caught it, and second it span in really fast circles.
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Closed Thread


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
pic: I Love UPS! dubious elise Extra Discussion 15 05-05-2006 16:43
pic: UPS with UPS Kevin Kolodziej Extra Discussion 10 04-05-2005 12:57
I am silly. FotoPlasma Chit-Chat 15 07-01-2003 09:55
silly fun Mark Hamilton Chit-Chat 8 29-10-2002 13:56


All times are GMT -5. The time now is 16:45.

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