• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

While coding have you ever...

ivol07

Golden Member
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?
 
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!
 
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?
 
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...
 
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.
 
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. 😱
 
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 😛
 
nope, can't say i've ever done that... never even felt the urge. perhaps if i had more animosity towards the user...
 
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)
 
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.
 
We never have this problem at our company. We have this little department that checks stuff over, called QA!
 
Back
Top