While coding have you ever...

ivol07

Golden Member
Jun 25, 2002
1,475
0
0
Accidentally left something in the code that you weren't supposed to.

For instance. My company likes to hand me huge projects a day before they need it done. I can usually handle it, but sometimes I get overwhelmed and things slip my mind. So for one project a while ago one thing I had to do was create an online form for people to enter a contest. They would submit their information, it would get recorded to a database, and it would spit them out a nice thank you note. Well this doesn't take long to do and while I was testing it I put the text "Thank you for filling out our contest form (or something like that), now don't forget to wipe your ass". I don't remember why I put that in there, but I know I forgot to take it out. So when this went live we obviously got some complaints. More than a few. LUCKILY I wasn't canned (damn I love my employer), but I'll tell you I never even came close to making a mistake like that again.

So any other stories?
 

StageLeft

No Lifer
Sep 29, 2000
70,150
5
0
That is exactly why even when feeling compelled to do so I've deliberately avoided leaving out funny things in my code like that. I make damn sure I have nothing in there that could be embarassing if I fail to take it out! In your case I might have had it read something like "Skoorb is so awesome. Thanks for submitting!" But never anything offensive!
 

dullard

Elite Member
May 21, 2001
26,042
4,689
126
No I've never considered putting anything like that in my work. Sure it may be funny, but why take the time (even if 5 seconds) to type that?
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Originally posted by: n0cmonkey
Variables are usually 4 letter words for me. I leave them like that.

Haha, I've had professors laugh at this very same thing that I do
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: CorporateRecreation
Originally posted by: n0cmonkey
Variables are usually 4 letter words for me. I leave them like that.

Haha, I've had professors laugh at this very same thing that I do

I do it for scripts and whatnot that we use internally. No one ever seems to mind...
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
I'd have to say what you did was horribly unprofessional and not at all humorous. I never forget to remove such things, because I never add such things. At most I've done something like Skoorb. I've seen a lot of humorous comments in code, but never in anything that might potentially be displayed to the user.
 

vi edit

Elite Member
Super Moderator
Oct 28, 1999
62,484
8,345
126
Originally posted by: n0cmonkey
Variables are usually 4 letter words for me. I leave them like that.

Heh. Same here. Most commonly used one was "poop". I lost a few points in VB and C++ classes for having "poop" variables left in there. :eek:
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Descartes
I'd have to say what you did was horribly unprofessional and not at all humorous. I never forget to remove such things, because I never add such things. At most I've done something like Skoorb. I've seen a lot of humorous comments in code, but never in anything that might potentially be displayed to the user.

I called the user a biatch one time in a script. But it was a script that a very small group of people internal to the company would be using. And the bosses didn't care, complain, or change anything so it stayed atleast until I left. Of course, most of us didn't think that the script could be displayed (and was several times) on a big screen tv in view of customers, potential customers, and board members :p
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
nope, can't say i've ever done that... never even felt the urge. perhaps if i had more animosity towards the user...
 

EyeMWing

Banned
Jun 13, 2003
15,670
1
0
Heh, I have this nasty habit of leaving
/*Everything below this fvcking line is for diagnostic purposes. Comment it before you finally compile and delete it before you turn it in.
<ton of variable prints go here>
*/
on the bottom of my code printouts. Teacher never seems to mind, even though I usually have the println's loaded with expletives (Especially if I've found it particularly difficult or kept forgetting somthing obvious)
 

flxnimprtmscl

Diamond Member
Jan 30, 2003
7,962
2
0
I'm usually listening to music whenever I'm doing any coding so I've had my mind wander off before and then snapped out of it to realize that I've typed some verse of a song into whatever I was doing. Never left anything in though.
 

sygyzy

Lifer
Oct 21, 2000
14,001
4
76
We never have this problem at our company. We have this little department that checks stuff over, called QA!