Why MS is Not Opening More Source Code
mario_grgic writes "Apparently inappropriate code comments is one of the reasons according to this story.
I wonder what kind of things developers put in comments that would be so bad for the rest of us to see?"
And when you've glanced at it, you've doomed yourself and your Open Source company from ever using you as a developer ever again. Take the glibc stance and just avoid MS code if at all possible.
Probably just a bunch of four-letter variables that would offend anyone older than 27....
"The object of war is not to die for your country, but to make the other bastard die for his." - Patton
grep -ri fuck /usr/src/linux
I just wouldn't be open source without inappropriate comments.
The GeekNights podcast is going strong. Listen!
I am a delphi developer and often delve into the VCL source and the source of other third party components and these usually contain little or no comments which leads me to believe that the comments are automatically stripped out when the software is released to the world.
So If Microsoft does this then there is one excuse down the drain, but how many more will there be?
A few years back, my company was interested in buying a component of our software in an OEM arrangement. We had a formalized code review meeting that spent three days on paper review of architecture and that sort of stuff
The second part of the week was a code walkthrough highlighting certain parts of the tricky code. My software development manager, for some unknown reason, decided to leave in original comments from the developers which included
- Dissatisfaction with a pay raise of only 22 percent
- Disatisfaction of some coding policies I had asked my development manager to implement (real tough policies like add *some* comments in code to explain it
- A reference to two of our female finance people
The President and myself spent a very hard Saturday meeting reassuring IBM that while the comments were unprofessional, the code and archtiecture was sound. I came within a hair of losing my job.
Yes, people were shown the door as a result, and I learned a big lesson on the difference between trust and due diligence.
After reading some of the comments, I've come to realize that many people apparently use vulgar language and/or ridiculous comments in there code. Am I in the minority when it comes to not doing this? I really don't see the point actually. I don't like to comment anymore than the next guy, but when I do, it's usually there to help me out in the future (even if that's just tomorrow when I come back in to work). I would feel like an idiot reading my own code if it were riddled with comments like 'this fucking sucks!', or 'the front desk girl is so hot and has big tits!'.
"/* Copyright © 2000 Apple Computer, Inc. All rights reserved. */" /* Special thanks to Xerox */
"Derp de derp."
Most of the comments here are about what funny things are said in the source code. I think a more interesting piece from the article is "These issues include intellectual property rights". This to me states that either they have licenced parts of the Windows Forms code from third parties, or (for those of you with tin foil hats, put them on now) they have "borrowed" parts of the code from third parties and do not want them to find out about it. Hmmm.
it is only after a long journey that you know the strength of the horse.
The main exception is code that needs optimisation. But when you remember that isn't always to early to optimise code, and when you do optimise, you only optimise the small fraction of the code that has the most effect, then the ammount of code that needs comments is minimal.
The other exception is commenting other peoples code that haven't written it in a legible fashion.
P.S. Like the grandparent post, I'm not talking about function header comments, particularly auto documentation system comments - those are essential. I'm talking about comments mixed in with the code.
http://imprint.uwaterloo.ca/issues/100298/3Science /science01.shtml p ple/2100-1001_3-202143.html
http://news.com.com/MS+to+invest+150+million+in+A
"Both Apple and Microsoft executives denied that the Microsoft investment represents a path to converging the companies' operating systems. However, they said they had agreed to work out a settlement to a long-standing dispute over whether Microsoft's Windows operating system infringes on any of Apple's patents."
http://www.jmusheneaux.com/index02.htm#Major
From the last link it's clear that Xerox lost, so the only FUD here is that of Xerox deserving credit.
neat! i would mod this up if i had any points. most interesting thing in this entire thread.
once you go slack, you never go back
I doubt that anyone would place comments in code that basically boil down to "I hate my job and my employer." At the next code review, or the next time a bored coleague looks into your code, it's just begging to be used against you.
/. screaming and waving it around as definitive proof MS can only write bad code.
If comments about the company or other co-workers are present, they'll more likely be a lot milder and kept to something you can sorta justify as just documenting code behaviour. E.g., "this is a work-around for Bug X in Function Y of the MSFC".
On the other hand, there is plenty of room for utterly inapropriate comments about other companies and products. Think along the lines of "unlike the utter crap we took from the BSD monkeys, this one is 40 times faster and uses 10 times less memory." Or "this is here only because the monkeys from are too stupid to do their own buffer checking before calling my function."
Excessive hubris is pretty much part of the job description for nerds. Remember kids, everyone else sucks and is an idiot luser. Only you can possibly know anything at all about computers. And only the skills you have (e.g., pushing the power button or typing "emerge kde") are l33t and cool, the rest is idiot luser stuff.
But my guess is more like MS is just playing defensively. There are a lot of people and has-been companies that are out for MS's blood. Comments that noone minds in the Linux kernel, if found in MS code would get those people screaming for blood and gathering a proper medieval crowd with pitchforks and torches.
I mean, look around. Even a comment as benign as "this is a work-around for bug X in function Y" would get half the MS-bashers on
Doubly so for those who:
A) never wrote any productive code in their entire life, but think they're uber-l33t because they can run someone else's scripts (e.g., "emerge kde"), or
B) wrote a 20 line program in BASIC once, or a 20 line BASH script, so they think they're qualified to pass judgment about 1,000,000 line projects or about whole languages
(No offense intended to good programmers in either VB or various shell scripts. But there is a _massive_ and _fundamental_ difference between a 100 line program and a 100,000 line program. Stuff that works in the former, like, "bah, I wrote it just as well without all this fancy encapsulation and bogus design", might just cause the latter to never be finished or anywhere near working.)
A polar bear is a cartesian bear after a coordinate transform.