![]() |
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... |
In all my coding, I've never really used profanity. If there was something that I needed to find later, I'd either mark the line with a wierd ~!~! thing, or just remember the line. Prollay why half my projects haven't been finished...
|
I'd REALLY like to see some examples from the source, I'll bet some of it is pretty damn funny.
|
Ya, but I bet seeing the source or at least openly stating you've seen it or posting pieces of it would be a bad move.
|
Quote:
|
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. |
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 |
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 :D
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 :D @Latch ha, good stuff :thumbsup: i normally do some similar stuff :p |
My code would definitely be R-rated. Sometimes I have to be careful to filter out error handlers that say "WHAT THE FUCK?!?!?!??!???" and such. ;)
|
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.
|
From kuro5hin.org, there's a listing of many of the comments in the source code: follow this link.
|
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!
|
This message has been deleted.
|
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. |
All times are GMT -8. The time now is 07:55 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project