piggymouse: (forever)
[personal profile] piggymouse

From "We Are Morons: a quick look at the Win2k source":

Despite the above, the quality of the code is generally excellent. Modules are small, and procedures generally fit on a single screen. The commenting is very detailed about intentions, but doesn't fall into "add one to i" redundancy.

There is some variety in the commenting style. Sometimes blocks use // at every line, sometimes the /* */ style. In some modules functions have a history, some do not. Some functions describe their variables in a comment block, some don't. Microsoft appears not to have fallen into the trap of enforcing over-rigid standards or universal use of over-complicated automatic tools. They seem to trust their developers to comment well, and they do.

Date: 2004-02-16 06:37 am (UTC)
From: [identity profile] corvalol.livejournal.com
PR-акция от MS! Запланированная утечка вылизанных исходников!

Date: 2004-02-16 06:43 am (UTC)
From: [identity profile] blacklion.livejournal.com
Интересно.
Спасибо за ссылку.

Re:

Date: 2004-02-16 07:13 am (UTC)
From: [identity profile] piggymouse.livejournal.com
Это fucking мысль.

Date: 2004-02-16 11:09 am (UTC)
From: [identity profile] yms.livejournal.com
Нашли о чём писать. Лучше бы привели, например, вот этот коммент из сорсов regedit:

[объясняется, почему понадобился новый формат заголовка для юникодной версии под NT, а потом идёт следующее]

So just bump the version in the header to REGEDIT5 and be done with it, right? Wrong. The regedit on Win95 and NT 4 looks at the first character after the string "REGEDIT" and compares it to the digit "4". If that character is anything other than the digit "4", the parser assumes it is looking at a Windows 3.1 file. Yep. There will only ever be two formats, right? Just Win95 and Win3.1. That's all the world needs.

So a completely new .reg file header had to be invented, so that the older, brain damaged regedits of the world would simply reject the new, unicodized .reg files outright. An NT 5 .reg file, exporting your user TEMP variable, looks like this:

Windows Registry Editor Version 5.00

Re:

Date: 2004-02-17 02:55 pm (UTC)
From: [identity profile] seliv.livejournal.com
Поразительно! Мне в первый момент эта же мысль в голову пришла.
Однако наверное все-таки это не PR

Profile

piggymouse: (Default)
איש אי הכלבים

April 2011

S M T W T F S
     1 2
34 56 789
10 1112 13141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 20th, 2026 11:01 am
Powered by Dreamwidth Studios