menu

天魔窟

勇往直前

Avatar

呵呵,抓狂的微软程序员~

最近泄漏的 Windows 2000 源码中,有人发现了不少纯粹是宣泄情绪的注释,看来微软的工程师们也并非编码机器啊,呵呵~

Comments in MS source code
Posted by bink on February 16, 2004 at 6:28 PM

A quick, superficial look at the style and content of the leaked Windows 2000 source. It's quoted from the comments but not the code, so this should be safe for developers to read.

“....In the struggle to meet deadlines, I think pretty much all programmers have put in comments they might later regret, including swearwords and acerbic comments about other code or requirements. Also, any conscientious coder will put in prominent comments warning others about the trickier parts of the code. Comments like "UGLY TERRIBLE HACK" tend to indicate good code rather than bad: in bad code ugly terrible hacks are considered par for the course. It would therefore be both hypocritical and meaningless to go through the comments looking for embarrassments. But also fun, so let's go.

Curse words: there are a dozen or so "fucks" and "shits", and hundreds of "craps". Some dissatisfaction with the compiler is expressed in private\shell\shell32\util.cpp:

// the fucking alpha cpp compiler seems to fuck up the goddam type "LPITEMIDLIST", so to work
// around the fucking peice of shit compiler we pass the last param as an void *instead of a LPITEMIDLIST

Some insight into Microsoft's famous daily build process is given in private\windows\media\avi\verinfo.16\verinfo.h:

[color=#0000FF]!!!!!!!IF YOU CHANGE TABS SPACES, YOU WILL BE KILLED

!!!!!!!!!!!!!!DOING SO FUCKS THE BUILD PROCESS!!!!!!!!!!!!!!!!“[/color]

More at source

News Source: Kuro5hin

搞笑啊。
不过我估计怎么也应该有一段类似木马的代码吧,
所以中国最好有自己的操作系统。

评论已关闭