02-13-2004, 07:46 AM | #1 (permalink) | |
WARNING: FLAMMABLE
Location: Ask Acetylene
|
Leaked MS sourcecode found to be littered with profanity
http://news.bbc.co.uk/2/hi/technology/3485545.stm
Quote:
When I am writing the development versions and I want to trace output I usually put profane statements in so I can see the sequence and repetition of things. Am I the only one? When I had to implement red-black trees things got quite messy, when I go final I always do a replaceall of the output statements to put them in comments. But they stay in the source code because I might need to debug later...
__________________
"It better be funny" |
|
02-13-2004, 11:03 PM | #5 (permalink) | |
Insane
Location: Seattle?
|
Quote:
|
|
02-14-2004, 06:16 PM | #6 (permalink) |
Essen meine kurze Hosen
Location: NY Burbs
|
I have been programming for about 20 years and have always been quite, uhhh, spirited with my code comments. The problem arises when one extends their colorful prose to include variable names and printed text. As often happens late in a project (or late at night) when frustration sets in, I will begin naming variables in a way that quite reflects my mood.
for (c*nt = 0; c*nt < f*cked; c*nt++) { ... if (myass > 10) { ... while (thiscouldntsuckmore) { ... About 10 years ago I was pulling an all-nighter on a project that was due the next day. Early in the morning, the program was giving fits and I, being exhausted, frustrated and a little punchy, started really dressing up my code as I tried to chase down one last error. I wrote some code to display in a message box the value of a less-than-professionally name variable. After I fixed the problem, I promptly forgot about the message box code. At the client's office later that morning, I proceeded to show off the new features. Suddenly up pops a message box... "Mangey Testicle = 1000" I explained that it was a technical term. Move along. Nothing to see here. My partners and I have since instituted the "Prime Directive". No code, comments, or variables of a questionable nature. We, of course, break the Prime Directive constantly. So all code must still be searched against a list of possible infractions before going out the door.
__________________
Out the 10Base-T, through the router, down the T1, over the leased line, off the bridge, past the firewall...nothing but Net. |
02-14-2004, 08:41 PM | #7 (permalink) |
In Your Dreams
Location: City of Lights
|
Examples:
(I got this from fark.com, where a Farker had posted saying they got this from /., where someone had grepped the source code and posted this in the comments section... sooooo.. I've never seen the code myself (oh.. also.. I changed stuff from the fark filter to the way it was originally) webapp.cpp: // HighContrast mode is turned on. This totally fucks our style sheet as most of it will copy.c:// want to fuck with. util.cpp:// the fucking alpha cpp compiler seems to fuck up the goddam type "LPITEMIDLIST", so to work util.cpp:// around the fucking peice of shit compiler we pass the last param as an void *instead of a LPITEMIDLIST util.h:// the fucking alpha cpp compiler seems to fuck up the goddam type "LPITEMIDLIST", so to work util.h:// around the fucking peice of shit compiler we pass the last param as an LPVOID instead of a LPITEMIDLIST windbgrm .c: // The user fucked up verinfo.h: * !DOING SO FUCKS THE BUILD PROCESS! map.c: // !!!this is fucked if a map goes to multiple physical devices conman.cxx:// BUGBUG - DON'T DO THIS SHIT. mnddlg.cpp: // this shit's read only ctl3d.c: // Some ugly shit goin' on here! capdib.c: // Holy shit, couldn't change formats, time to punt! capdib.c: // Holy shit, couldn't change formats, time to punt! capdib.c: // Holy shit, couldn't change formats, time to punt! rle.c: // lets do some majic shit so the compiler generates "good" code. Fark Link: http://forums.fark.com/cgi/fark/comm...?IDLink=832715 |
02-15-2004, 09:45 PM | #8 (permalink) |
Fast'n'Bulbous
Location: Australia, Perth
|
I don't use profanity for any variable, class etc names, however in commenting and output statements, quite often, i'll swear if i am getting frustrated
Most of it has been for school/uni stuff, so before handing in the source code for any assignments i do, i just search for fuck, shit, ass etc and get most of it out @Latch ha, good stuff i normally do some similar stuff |
02-16-2004, 10:38 AM | #10 (permalink) |
Everything's better with bacon
Location: In your local grocer's freezer.
|
Ever since a client saw some questionable comments, there has been a mandate that we not put anything in the code that we wouldn't want our grandmothers to read. Unfortunately none of us have an ex-trucker, longshoreman or marine as grandmothers so this limits what we can use.
__________________
It was like that when I got here....I swear. |
02-17-2004, 03:28 PM | #12 (permalink) |
Psycho
Location: London...no longer a student
|
heh...who really minds about the profanities? i always use swear words and other rude words as comments and variables, my lecturers haven't complained to much yet, one even joked with me about it... maybe with commercial systems its different, but it makes programming more fun!
__________________
"Never underestimate a dumb question"-- Brandon Boyd |
02-19-2004, 10:48 PM | #14 (permalink) |
Free Mars!
Location: I dunno, there's white people around me saying "eh" all the time
|
The question is why in the fuckin world would you want to put profanity in your coding?
Christ, when you're a system programmer, did you think that you were going to be a programmer forever? No. I will fuking guarentee to you that whatever program you make and release to a company for rights or to the internet, there will be another programmer who will break into your program and find those profanity. When that happens and other companies knows that you put profanity in your coding, are they gonna want to hire you? Nope. I keep my code clean.
__________________
Looking out the window, that's an act of war. Staring at my shoes, that's an act of war. Committing an act of war? Oh you better believe that's an act of war |
Tags |
found, leaked, littered, profanity, sourcecode |
|
|