Slashdot Mirror


Software Engineering at Microsoft

an_mo writes "A link to a google cached document is floating around some mailing lists containing some info about microsoft software engineering. In particular the document contains juicy bits about the development of a large project like NT/2K. Some examples: Team size went from 200 (NT3.1) to 1400 (Win2k). Complete build of win2k time is 8hrs on 4way PIII and requires 50GB of hard drive space. Written/email permission required for checkins by the build team." The HTML version on Usenix's site is much nicer than Google's auto-translated version.

142 of 461 comments (clear)

  1. What no sacrifices to the gods? by Anonymous Coward · · Score: 2, Funny

    Surely a quick goat killing is required at least before check-in

    1. Re:What no sacrifices to the gods? by Castaa · · Score: 2, Funny

      No, goat sacrifices are for stable running of Windows. Calf sacrifices are for the compilation. It's in the bible.

      --
      Chew: You Nexus, huh? I design your eyes.
      Roy: Chew, if only you could see what I've seen with your eyes.
    2. Re:What no sacrifices to the gods? by SysKoll · · Score: 2, Insightful

      Indeed. You need to sacrifice at least the mythical all-redhair goat if you want to get 3 days of uptime with NT5.0 a.k.a. Win2000

      I saw a sig saying: Taking software security advice from Microsoft is like taking airline security advice from Bin Laden.

      I disagree. Bin Laden proved that he knew a lot about airline security (and how to defeat it).

      For all its self-congratulation, MS still does not know how to achieve code quality in a large software project. They do a lot of wide-and-shallow useability studies, but they pay as much attention to reliability testing as Hollywood pays attention to scriptwriters (i.e., not a lot. Remember the old joke? "How do you spot a blonde would-be actress in a movie cast? She sleeps with the writer.")

      -- SysKoll
      --

      --
      Mad science! Robots! Underwear! Cute girls! Full comic online! http://www.girlgeniusonline.com/

    3. Re:What no sacrifices to the gods? by mclearn · · Score: 2

      Reading this comment, it's funny that my Slashdot fortune is that "sacred cows make great hamburgers."

  2. I don't know much about build times.. by Psx29 · · Score: 2, Informative

    So for something like Windows 2000 is that a long time?

    1. Re:I don't know much about build times.. by Osty · · Score: 4, Insightful

      So for something like Windows 2000 is that a long time?

      It's long-ish, but not overly long. For a comparison that you may be more familiar with, consider the time it takes to compile the Linux kernel, your chosen libc, other libs you'll eventually need (say, gtk and/or qt, etc), X, GNOME or KDE, some apps (xmms, xine, a couple editors, etc), and probably 8 or 9 other things I'm forgetting right now. You'll probably come up with a similar number (probably smaller, but there's also probably less code in all the above tools).

      That's not to say it can't be made faster. I don't know whether that time was on a multi-threaded compile or not, but I'd sure hope so given that their build machines were 4-way machines. Also, note that they didn't say what speed the P3s were. 4 P3-500s will surely compile slower than 2 p3-1.2GHzs. Nor did they say if those were Xeons or not (larger cache is better for compiling). The obvious solution is to throw hardware at the issue, but there are other things that can be done like incremental building, better sync/drains for multi-threaded compiles, more efficient compilers and build scripts, etc.

    2. Re:I don't know much about build times.. by phong3d · · Score: 3, Funny

      40 gigs of RAM? That's some Twinkie.

    3. Re:I don't know much about build times.. by Indy1 · · Score: 2

      well win2k came out in jan of 2000, so my guess would be p3's in the 500-700mhz range.

      --
      Lawyers, MBA's, RIAA? A jedi fears not these things!
    4. Re:I don't know much about build times.. by Fulcrum+of+Evil · · Score: 2

      Well, as i recall, the box was an Dell 8-way Xeon p3, and it built everything, including both versions of several system Dlls (basically, anything with a TChar export, since that changed from char* to short* on win9x to winnt)

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    5. Re:I don't know much about build times.. by Emil+Brink · · Score: 2

      By their very definition, binaries kinda have to be "(pre)compiled", you know... You probably mean precompiled headers, at least that would make more sense.

      --
      main(O){10<putchar(4^--O?77-(15&5128 >>4*O):10)&&main(2+O);}
  3. read a book by johnjones · · Score: 5, Informative

    Show-Stopper!: The Breakneck Race to Create Windows Nt and the Next Generation at Microsoft by G. Pascal Zachary

    very funny about the head guy throwing chairs out of windows ( the phyical ones ironic really )

    and the black team....

    read it and Mythical Man-Month, and then you might have a small background

    regards

    john jones

    1. Re:read a book by selan · · Score: 2, Insightful

      I really enjoyed reading Showstopper. It's very well written and tells interesting stories about the people behind NT. I was surprised by the amount of work and testing that went into NT. Actually raised my opinion of the lowly Microsoft coders (not the brass, though). The book also goes into the sordid history of how Microsoft shafted IBM and OS/2 by making NT for Windows only. Very good read.

  4. Re:What a waste of time and money! by DNS-and-BIND · · Score: 2
    They might schedule the compile to complete overnight. That's what we always did, back in the bad old days when I was a Unix sysadmin.

    Of course, knowing MS, they would do it in the middle of the day.

    --
    Shutting down free speech with violence isn't fighting fascism. It IS fascism!
  5. nope by johnjones · · Score: 2

    not really I suspect that they have a few tricks up their sleaves

    what would really be fun would be to know what version of the compiler they are useing

    win2k it was Visual C 6 I wonder if they changed for XP

    regards

    john jones

    1. Re:nope by josh+crawley · · Score: 2

      ---"not really I suspect that they have a few tricks up their sleaves

      what would really be fun would be to know what version of the compiler they are useing

      win2k it was Visual C 6 I wonder if they changed for XP"---

      It'd be kinda funny if MS compiled all their OS 'stuff' on their unix boxes with GCC.

    2. Re:nope by m_pll · · Score: 4, Informative
      Win2K was built using VC5. XP is VC7.

      You can see the linker version using this command:

      dumpbin %systemroot%\system32\ntdll.dll /headers

    3. Re:nope by Anonymous Coward · · Score: 2, Informative

      Windows isnt' built with Visual C++ whatsoever. MS uses a custom internal compiler pretty much designed for building Windows and nothing else. In fact, during the Win2K dev process I'm pretty sure they took 4-5 different compiler drops. It might be based off of VC (I honestly don't know) but I know for a fact that they do NOT use VC at all to build Windows.

      JD

  6. Did they use a big enough font? by Anonvmous+Coward · · Score: 4, Funny

    Geez, I run at 1600 by 1200 and I still had to scroll every 10 lines or so. I got people yelling at me down on the street because I read slow.

  7. "How Microsoft Builds" by southpolesammy · · Score: 2

    This reminds me of an old article with the name of this subject that came out around the mid-90's about Microsoft's sync-and-stabilize methodology. Really not a lot new here, save the amount of time they required to build their OS.

    --
    Rule #1 -- Politics always trumps technology.
  8. Re:What a waste of time and money! by cpeterso · · Score: 4, Insightful


    Only the NT build lab needs to rebuild everything. Individual developers only need to built their feature's DLL and EXE files.

  9. Single point of failure by PingXao · · Score: 5, Insightful
    1 defect stops 1400 devs, 5000 team members!
    I would think this would lead to a situation where CYA would become a way of life. Sure, even the best developers will make an occasional mistake. The document notes that a successful culture needs to recognize that mistakes will happen, but if ONE defect is going to shut down 5,000 people, I know I wouldn't want to be the one everybody is pointing their fingers at. I can imagine the circus atmosphere when the blame-shifting and the search for the guilty goes into high gear.
    1. Re:Single point of failure by gwernol · · Score: 5, Insightful

      I would think this would lead to a situation where CYA would become a way of life.

      I don't think so - he's talking about buiuld brreaks (i.e. code that won't compile). These are automatically detected and the culprit is auto emailed. Under source code control there is nowhere to hide from this because you know whose code broke the build.

      The only CYA you can do is not check in broken code. This is a good thing :-)

      Runtime errors don't stop 5000 team members.

      --
      Sailing over the event horizon
    2. Re:Single point of failure by WaKall · · Score: 2, Insightful

      With proper branching in your source repository, you can isolate different areas of change, and thus keep build breakages limited to subsets of developers.

      With regards to isolating who broke a build, that would require a clean build for each and every checkin, which just isn't practical in terms of hardware resources. A more practical solution is to grab tip, build, if fail -> indicate all checkins since last green build. This gives you a bigger culprit set, but it's MUCH cheaper in terms of hardware.

    3. Re:Single point of failure by gwernol · · Score: 3, Insightful

      With proper branching in your source repository, you can isolate different areas of change, and thus keep build breakages limited to subsets of developers.

      Agreed, and we know that their SCCS was broken in this respect.

      With regards to isolating who broke a build, that would require a clean build for each and every checkin, which just isn't practical in terms of hardware resources. A more practical solution is to grab tip, build, if fail -> indicate all checkins since last green build. This gives you a bigger culprit set, but it's MUCH cheaper in terms of hardware.

      Again going back to the article, we're talking about their daily builds, which will be clean. The compilers will spit out failure information that can be easily traced back to the culprit.

      This is how many large (i.e. OS-sized) projects work - regular clean builds, usually once per day, with auto emailing of break information to those responsible. One group I worked in also required you donate some chocolate to a central "fund" available to all the engineers when you broke the build. A fun way of encouraging people to compile against clean sources before checking in.

      --
      Sailing over the event horizon
  10. not a troll by johnjones · · Score: 2, Informative



    show stopper from

    when has been recomending books on the subject a troll (and it was done by someone with unlimted .... )

  11. Re:What a waste of time and money! by JPriest · · Score: 4, Interesting
    "trying to co-ordinate anything would be a managerial nightmare!"

    Imagine how hard it must be to co-ordinate a project that big without "management". I think Linux could gain by creating a kind of unofficial management structure to better co-ordinate some of the projects.

    --
    Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
  12. Actually quite strange by rmassa · · Score: 2, Insightful

    I'm a linux user, but most MS people I know hail win2k as the best microsoft OS ever. So this presentation seems to be kind of strange, pointing out things (increased build time, developers/testers) that illogically seem to create a better OS.

    1. Re:Actually quite strange by Zordak · · Score: 2, Interesting
      but most MS people I know hail win2k as the best microsoft OS ever.
      I use UNIX and its clones when I can, but I have to say that when I am forced to use a Microsoft OS, Win2K is refreshingly good. It's still Windows, so there are some design aspects that really bug me still, but it is quite stable and usable otherwise. It's also probably the only decent OS they ever will make, since XP is crap from the UI down and now they are into all of this .NET subscription services and Palladium crap. Win2k just happened to fall into that tiny slot between when MS finally figured out how to make a semi-functional OS and when they got beyond paranoid with their IP. Still, given a choice, I'd much rather use UNIX or Linux.
      --

      Today's Sesame Street was brought to you by the number e.
  13. 8 hours? by hatrisc · · Score: 4, Funny

    it may have taken 8 hours, because they had to reboot twice.

    --
    I write code.
  14. Re:standard linux praise... by DeepZenPill · · Score: 2, Insightful

    I sorta doubt that 8hrs was spent only compiling the win2k "kernel." Don't forget that the GUI, networking and a ton of other crap is built in. I'm sure compiling an entire linux system consisting of apps equivalent to those which are built into windows would take a hell of a lot of time too.

  15. Re:A recipe for disaster by cpeterso · · Score: 2
    So your company's solution is:
    • "UML and other documentation is a fad. Code == design, dudez!! EXXXXTREME Programming R00LZZ!"
    • "Anyone can checkin at anytime, screw those other guys!" If developer time costs $20-40 a hour and your checkin breaks everyone's build, then that wouldn't cost time and money, would it?
    • "No one can tell ME what to do! I don't want anyone looking at my code!"
    • "Geographically decentralized team ensures that everyone is asleep when I have questions about their code. I guess I'll wait 12 hours for Hans to wake up."
  16. Showstopper! by jkujawa · · Score: 2, Informative

    "Showstopper!" was fascinating. David Cutler really is a genius. NT had the potential to be a truly great operating system. I would have loved to have gotten a chance to play with it before they bolted win32 on top of it. Everyone who has the slightest interest in operating systems should read Showstopper.

    1. Re:Showstopper! by eyeball · · Score: 2, Informative

      You want NT without Win32? It's called VMS :)

      --

      _______
      2B1ASK1
    2. Re:Showstopper! by Waffle+Iron · · Score: 2
      And I want Linux without GNU.

      I doubt you were serious, but that actually is a very good idea. Replace (or augment) decades of UNIX baggage with a clean, modern, easy-to-use UI and tooset, but keep the Linux platform compatibility and device drivers.

      In a nutshell, it would be like OS X, but with cheap hardware, and without black turtleneck sweaters.

      It's too bad that there would never be critical mass to get such a project started.

  17. Old news... by Anonymous Coward · · Score: 5, Informative

    Guys, the PowerPoint slides for the Lucovsky presentation has been publicly downloadable for almost 2 years. I always find it sad when Slashdot reports something old as something new.

    Go get the slides at http://www.usenix.org/events/usenix-win2000/tech.h tml

    1. Re:Old news... by inkfox · · Score: 3, Insightful
      Guys, the PowerPoint slides for the Lucovsky presentation has been publicly downloadable for almost 2 years. I always find it sad when Slashdot reports something old as something new.
      It was still probably news to most here. And it's interesting. Both make it a good story.
      --
      Says the RIAA: When you EQ, you're stealing bass!
  18. Re:A recipe for disaster by plierhead · · Score: 5, Insightful

    I venture to guess, however, that your company is somewhat smaller than Microsoft, is held together by shared enthusiasm and the exilaration of short term releases, and that you don't face many of the problems that any large company, not just the Borg, does. I would never defend the quality of MS products but anyone who has worked on large products with many existing custoemrs in a large software company like an Oracle, Microsoft or IBM will understand that it is simply impossible to only hire expert programmers whose work never needs to be checked by anyone else and who don't need any supervision.

    Some of your other statements are rather sweeping. Some parts of UML - such as object modelling - are very useful indeed and can act as highly rigorous sources for a lot of code and database generation or automated access. Others (like Use cases IMHO) suck and are of little use to programmers, though more in communication with PHBs and business types.

    A lot of what you say is very true for small focused teams working in their bedrooms/garages/garretts but much less so for any large software developer who sells software for money. Your "expert-driven" approach would never work at a Microsoft.

    Your last point, that OSS produces better results, is probably true. Certainly its more cost-efficient. But does it produce profitable companies that make heaps of money ? Maybe you don't like the idea of that. But most of the rest of the world, including your gray-haired neighbour who plans to retire on the proceeds of his portfolio, does.

    --

    [x] auto-moderate all posts by this user as insightful

  19. Re:standard linux praise... by sparkz · · Score: 2

    Try linuxfromscratch.org. Okay, it's to get a personalised build, not a CD installation, but my Celeron433/196MB was running solid for well over 24h to build a whole system. Probably more like 36h, certainly took about 3 days (though obviously I couldn't always co-ordinate it to be busy all the time I was asleep, only X, etc, take that long!)

    --
    Author, Shell Scripting : Expert Re
  20. Re:A recipe for disaster by MAXOMENOS · · Score: 5, Insightful

    UML and other modelling fads. My former employer required the use of 65-page UML diagrams for the simplest command-line utilities. Why? Because it was popular, and the investors liked to make sure we were buzzword-compliant. UML is designed for non-technical audiences, and as such it flies in the face of the engineering goals it is designed to solve.

    I've found UML, or at least quasi-UML, useful; any time I design a system I draw a quick UML sketch just to help me think about what's invovled. Unless, that is, it's something really dead simple .. something equivalent to a homework assignment. Sometimes most of the really hard work goes into a good UML diagram, and the rest becomes easy.

    But despite this, I can't help but reflect on your statement in utter horror. What the hell kind of UML diagram does one put together for, say, ls? Or cd? Or a numerical calculation?

    Code review. Code review is a power trip and best, and a drain on morale at worst. If a programmer cannot be trusted to develop excellent code, he should be replaced with somebody who can. It's a tight labor market on the developers' side, so incompetent programmers should be spending their time reading O'Reilley books instead of playing games and looking at porn in their parents' basement.

    I disagree with you on two fronts. One, I've always found code review beneficial for a project. Weaker coders learn good habits; stonger coders teach good habits; bugs not visible to some become visible to others; the general quality of code improves. People who can't deal with constructive criticism of their code make for bad team-mates.

    Secondly, I've never met anyone who became a good programmer by reading books, even books as high quality as O'Reilly's. I learned to code by writing code and reading others' code. The books make handy references, but sticking to books is akin to trying to learn to write well by reading the dictionary.

    Large, geographically concentrated development teams. The best work is emphatically not done by 1400 people in the Redmond campus. The best work is done by culling experts of individual niche areas from around the globe. Not surprisingly, this is the model that Linux and most Open Source software uses, and that is why OSS is phenominally successful compared with any of its proprietary competition.

    Most of Microsoft's problems can probably be directly attributed to the size of its development team. MS project designers might do well to re-read The Mythical Man-Month (if they never read it, they have no business being project designers, IMO).

  21. Your design process is the real disaster recipe... by javabandit · · Score: 4, Insightful
    My former employer required the use of 65-page UML diagrams for the simplest command-line utilities. Why? Because it was popular, and the investors liked to make sure we were buzzword-compliant. UML is designed for non-technical audiences, and as such it flies in the face of the engineering goals it is designed to solve. What's good for the suits isn't necessarily good for the engineers.
    I'm not sure how to say this nicely, but you are a moron. You actually think that UML and design diagrams are only for suits? That is ridiculous. Just because your former employer was a complete idiot and requiring obscene amounts of UML diagrams for small things doesn't make the whole concept a farce.

    Good engineering (of any kind) starts with design... a plan. I'm glad you don't build skyscrapers or airplanes.
    These stand in the way of progress like no other corporate "bad habit." Requiring programmers to have a supervisor (often a non-technical PHB) "sign off" on their code prior to the commit is ludicrous. Developer time costs $20-40 an hour - should that time be wasted pursuading co-workers to check in and approve their code, or should it be spent doing actual development?
    Oh boy. So you basically are thinking... what... that code should be reviewed after it has already hit QA or something? Or perhaps we shouldn't review code at all?

    Here's a clue. If a developer is costing 20-40 per hour writing CRAPPY code... THAT is a far worse waste of time than taking a little time... reviewing the code... and correcting it if necessary.

    Development isn't just writing code any way you want. You want things to be very solid, standardized, and consistent before it gets into beta. Using your way... you'd never know if the code was good or not. Apparently... to you... if it works... ship it!
    Code review is a power trip and best, and a drain on morale at worst. If a programmer cannot be trusted to develop excellent code, he should be replaced with somebody who can.
    What? How do we know if the code is bad? We have to REVIEW it? What if the developer doesn't understand a certain design pattern and implemented it incorrectly? Hell... what if a bug or flaw is discovered during the review process?

    These are all common issues in everyday development. It doesn't necessarily mean the developer is BAD. Rather... the developer is HUMAN.

    Although... with your lack of a code review process, lack of system design process, and lack of formal check-in process... I am surprised that any decent code gets written at all.
    The best work is emphatically not done by 1400 people in the Redmond campus. The best work is done by culling experts of individual niche areas from around the globe. Not surprisingly, this is the model that Linux and most Open Source software uses, and that is why OSS is phenominally successful compared with any of its proprietary competition.
    You're comparing apples and tractors. Financial gain or customer/user base size are NOT measures of good code, excellent development standards, or strong design processes. Although, I'm not certain you will understand what I'm saying here.

    There is some excellent open-source software out there. Likewise, there is some excellent proprietary software out there.

    And there is crappy software out there, too... for both worlds. Whether or not something is open source or proprietary says nothing about how it is written or how well it is designed.

    This obviously is a huge troll that I'm feeding here.
  22. Re:A recipe for disaster by WaKall · · Score: 2, Insightful

    I think you're way off-base on the Code Review comment. At my job, code reviews take roughly 3-5% of the time I spend writing code, and very often find problems (in having my own code reviewed, or reviewing someone elses code).

    And even if no bugs are found, it helps to have another pair of eyes go over code for readability. It may make sense to you, but it may not to someone else. When you leave and that code needs fixing, NOBODY will understand it because they don't have preconceived notions about how it operates.

    The BEST thing you can do to improve quality of code, and of your developers, is to code review before every checkin. Find someone who is more/as intelligent as you, and have them scour your code while sitting next to you. At worst, they'll understand the code. At best, you'll find a bug before it goes out there, or you'll learn something new about the language/library you're using that you didn't know before.

  23. [OT] Re:I don't know much about build times.. by the+Man+in+Black · · Score: 2

    MAD MAD props on the Ghostbusters quote.

  24. Re:Found the original ppt file for those of you wi by popoutman · · Score: 2, Interesting
    Actually works quite well with OpenOffice..

    Hats off to the staroffice teams for a nice job well done.

    --
    - This sig deliberately left blank. Nothing to see, move along.
  25. Re:A recipe for disaster by marick · · Score: 5, Insightful

    # Code review. Code review is a power trip and best, and a drain on morale at worst. If a programmer cannot be trusted to develop excellent code, he should be replaced with somebody who can. It's a tight labor market on the developers' side, so incompetent programmers should be spending their time reading O'Reilley books instead of playing games and looking at porn in their parents' basement.

    No, no, no. Code-review is VERY USEFUL. No, it won't catch architecture mistakes (necessarily). No, it won't catch design mistakes. Hopefully you already know how to design before you get your first software job.

    What code-review catches is the annoying things that the best developers tend to think don't matter so much. Style-differences from company practices. Naming conventions not being followed. Poorly chosen variable-names. Lack of documentation.

    In short, code-review makes your code more maintainable. Your company may not use it, but that doesn't make it useless.

  26. SourceDepot = Perforce != VSS by Anonymous Coward · · Score: 5, Interesting

    It seems that Microsoft does not use Visual Source Safe for Windows source code.

    1. Re:SourceDepot = Perforce != VSS by spectecjr · · Score: 2

      Thanks!

      I've been trying to work out what SourceDepot was really called in the outside world for ages. I've been looking for a good replacement for VSS.

      Si

      --
      Coming soon - pyrogyra
    2. Re:SourceDepot = Perforce != VSS by 1010011010 · · Score: 2


      It's hard to believe how sucky their first source control system was. When was CVS available? It's not perfect, but at least it has branching.

      --
      Napster-to-go says "Fill and refill your compatible MP3 player", which is a lie. It's not MP3. It's WMA with DRM.
    3. Re:SourceDepot = Perforce != VSS by Phexro · · Score: 3, Funny

      Yeah, but CVS is licensed under the GPL, which means that all Microsoft code in CVS would have to be copylefted, too! This is because the GPL is a viral cancerous anti-american pac-man. A document imbued with pure satanic evil, created by the twisted genius of Richard M. Stallman, who stands poised to destroy the world economy at the drop of a hat.

      Or so I've read.

    4. Re:SourceDepot = Perforce != VSS by BitGeek · · Score: 3, Interesting


      And when I worked there we used "Slime" for version control, VisualC as the IDE (Though some people chose to use another IDE).

      MS has good people but a completely fscked development process.

      One of only two jobs where I've been criticized for commenting my code. (Not lack of comments, but too many.)

      --
      Yeah, and you guys panned the ipod too: http://apple.slashdot.org/article.pl?sid=01/10/23/ 1816257
    5. Re:SourceDepot = Perforce != VSS by Anonymous Coward · · Score: 3, Interesting

      Yes, we use Source Depot on my team at MS. It's very Unixy in its syntax (likes a lot of filtered output piped to it from other cmdline tools), and it's also a bit obscure in its details. It has a GUI client, but the bulk of it, other than the client mappings (which server stuff to sync) is all cmdline. It's not great, but at least it scales, which is more than you can really say for VSS.

    6. Re:SourceDepot = Perforce != VSS by Otterley · · Score: 2, Interesting

      Just because your code is stored in CVS does not make it automatically fall under the GPL. That's like saying that because your code was compiled under gcc that it falls under the GPL.

      Only if you include CVS code in your project does the GPL apply to it.

    7. Re:SourceDepot = Perforce != VSS by Phil+Wilkins · · Score: 2

      I did that same google search (there's a few other clues out there too) and confronted a couple of microsoft developers on a mailing list (we'd been having a long discussion about VSS, and how much it sucked for projects with more than a hundred files). One of them fessed up. Apparently the SCCS system is chosen on a per-team basis. Some use SourceDepot, which is derived from Perforce, while others use VSS. Oh, and good luck trying to get a copy, SourceDepot is an internal project, not for public release.

    8. Re:SourceDepot = Perforce != VSS by Dom2 · · Score: 2, Insightful

      And rightly criticized if I might add. Too many comments obscure the code and duplicate what it says a lot of the time. Good comments are an art form.

      -Dom

    9. Re:SourceDepot = Perforce != VSS by anshil · · Score: 3, Insightful

      Thuis is not in any kind funny.

      Really lot of windows guys people believe that if they use gcc as compiler they have to be GPL, it's FUD, and jokes like this only HURT Gnu,GPL,Linux. (or use bison, or edit the code with vim, and so on). This kind of humor is just too expensive, as people not knowing the regarding background actually believe kind of stuff, it's fear from the FUD they heared from the MCSE's.

      --

      --
      Karma 50, and all I got was this lousy T-Shirt.
    10. Re:SourceDepot = Perforce != VSS by FFFish · · Score: 2

      It was a joke. Laugh.

      --

      --
      Don't like it? Respond with words, not karma.
    11. Re:SourceDepot = Perforce != VSS by Phexro · · Score: 2

      Come on. I fail to see how anyone could take my joke seriously, even someone spoon-fed Microsoft propaganda.

      If anything, seeing all the false claims Microsoft has made about the GPL clumped together like that should make people question those claims.

      Using humor to criticize is not a new concept. Your statement is akin to saying that political cartoons that satirize the President's actions since 9/11 promote terrorism, and both statements are equally false.

    12. Re:SourceDepot = Perforce != VSS by BitGeek · · Score: 2

      And rightly criticized if I might add.

      Really? You read my comments? Sheesh. From what I can tell you don't use any real programming languages so maybe you've never been trained.

      The code was not obscured by comments. In fact, by my standards, I under comment.

      But most programmers, in my experience, and almost all the programmers at microsoft, put no comments in there at all, and write quite poor code.

      Anyway, In all my years of professional work, I've *NEVER* seen a case of "too many comments".

      --
      Yeah, and you guys panned the ipod too: http://apple.slashdot.org/article.pl?sid=01/10/23/ 1816257
    13. Re:SourceDepot = Perforce != VSS by Ayende+Rahien · · Score: 2

      i++;// add one to i
      for (i=0;i10;i++)//loop 10 times, the i10 is there because we start from zero...

      Those kind of comments are reduntant, always when you can, let the code do the commenting for you.

      ThreadArray[Index].Suspend();

      Comments should be for the why, not the how.

      And there is always the fun stuff when the comments are out-dated, which happens a lot more than most people realize.
      There isn't anything as nice as trying to understand code which has out-dated/misleading/outright worng comments.

      --

      --
      Two witches watched two watches.
      Which witch watched which watch?
    14. Re:SourceDepot = Perforce != VSS by BitGeek · · Score: 2

      i++;// add one to i
      for (i=0;i10;i++)//loop 10 times, the i10 is there because we start from zero...


      Are you being silly?

      Yes, these are pointless comments, but they are not the kind of comments I'm talking about.

      Maybe comments get out of date- not updating comments is an error by the programmer who didn't update them... but out of date comments are better than no comments.

      --
      Yeah, and you guys panned the ipod too: http://apple.slashdot.org/article.pl?sid=01/10/23/ 1816257
  27. God help them... by duckpoopy · · Score: 2, Funny

    if they are using SourceSafe.

    --
    word.
    1. Re:God help them... by ryants · · Score: 2
      SourceUnSafe is so bad, Microsoft doesn't even use it internally.

      Go figure.

      (They use some internal tool called SourceControl, or something like... the name escapes me)

      --

      Ryan T. Sammartino
      "Ancora imparo"

    2. Re:God help them... by cant_get_a_good_nick · · Score: 4, Interesting

      If you think Visual SourceSafe is bad...

      I had a contract project, a porting job. The platforms were Win32 (where it originated) UNIX/Linux (our port), Novell, and OS/2. We had the command line version because the Linux GUI core dumped every 5 seconds. But the command line version stull sucked, and of course didn't know shit about line endings. We could script it with some extension mapping to try to do dos2unix/unix2dos, but good luck, cause the command line version wouldn't have any useful exit() values. I have no idea what the Novell and OS/2 guys did.

      Joel Spolsky (he's been on here before) wrote about sucky SourceSafe a bit and how Microsoft really doesn't use it. Doens't give me a lot of confidence using it. He also had the link to the UseNix verion of the talk given in the story.

    3. Re:God help them... by Samrobb · · Score: 2, Informative

      Grrr. And of course, someone later on points to a blurb that describes SLM:

      Joel on Software

      --
      "Great men are not always wise: neither do the aged understand judgement." Job 32:9
  28. Can't pull IE from Windows, huh? by davebo · · Score: 5, Insightful

    Microsoft claims IE can't be separated from the OS. Yet, the presentation points out the code is broken into 16 sub-projects, largely isolated from each other, and separately buildable.

    Two of those projects were "INetCore" and "INetServices".

    So why can't you just build 2K without those 2 subprojects, or just stubs inserted for the functions declaired in those projects?

    1. Re:Can't pull IE from Windows, huh? by patchmaster · · Score: 5, Informative

      Those claims are clearly gross exaggerations intended to fool idiots and judges into thinking IE is an integral part of the OS. They define "IE" as every line of code exercised by IE in doing its thing, including mundane things like writing to the screen or saving a file. Then they discover if you pull out all the code for "fwrite" suddenly the system stops working. Duh! It's like claiming your car won't run without the windshield wipers, defining the windshield wipers as everything needed to make them work, including the battery. So you pull out the battery and, what do you know, the car won't start.

    2. Re:Can't pull IE from Windows, huh? by FatRatBastard · · Score: 2

      I always thought of it as claiming you couldn't take the car stereo out without the engine failing. Sure, you can design a car that way but its incredibly stupid. The only reason GM would do such a thing is to keep AIWA et al from being able to install a third party player.

    3. Re:Can't pull IE from Windows, huh? by hyoo · · Score: 3, Insightful

      Seperately buildable does not imply seperately runnable.

    4. Re:Can't pull IE from Windows, huh? by sql*kitten · · Score: 3, Informative

      So why can't you just build 2K without those 2 subprojects, or just stubs inserted for the functions declaired in those projects?

      The thing you must understand about Microsoft code is that everything is a component, OLE in the old days, COM now. That's why you can easily call Excel's charting functions from your own code, say. It's also why you can run macros inside Outlook, all Microsoft applications are components and scripting glue (like VBA). Wordpad, for example, is almost no code in and of itself, it's a rich text component, a toolbar component and so forth. If you want to build a custom web browser, you can just reuse the HTML renderer and whatever else you need from IE, they are all components.

      But this also means that if the internet components were entirely removed, there would be no OS-level TCP/IP support, the online help viewer which uses the HTML renderer wouldn't work, etc. So that's why MS say they can't remove MSIE - because IExplore.exe on your hard drive is just the glue holding together a bunch of components that are provided by the OS and available to any application.

    5. Re:Can't pull IE from Windows, huh? by HydroCarbon10 · · Score: 2

      IE isn't glue holding anything together, IE is a browser that utilizes the various components and services provided by Windows. MS says they can't remove IE because they don't want to. They could just as easily leave in the html renderer, the url handling, and everything else IE relies on and remove IE itself. It'd be like removing NeoPlanet. Unfortunately, Microsoft believes that all those components IE makes use of are part of IE and not really components of Windows.

      --
      The best way to accelerate a windows box is at 9.8 meters per second square.
  29. Re:A recipe for disaster by glwtta · · Score: 2

    Even if that's 12 hours a week, Hans is just NOT a programmer. ;)

    --
    sic transit gloria mundi
  30. use cases suck? by mrp · · Score: 2

    Others (like Use cases IMHO) suck and are of little use to programmers, though more in communication with PHBs and business types.

    I've found use cases to be really useful. Two reasons:

    • Keeps programmers focused. I've worked with programmers who had their own ideas about what ProjectX should do, and forget about what the accountants, who'll use it every day, need to do. I've inheirited code with huge chunks that have never been executed in production - stuff the programmers thought might be useful, but wasn't asked for or needed, wasting design time, coding time, testing time, and maintenance time.
    • Prevents me from slapping my forehead 45 days after release. Say I write some internal billing machinery - I have customers in Accounting and Sales. "We're closing up the books for last month, how do we figure out NumberX?" "We're handing out salesperson commissions, how do we figure out NumberY?" I find it difficult to anticipate all necessary use cases unless I interrogate users, write 'em down and check against 'em.

    But at the end of the day, bad programmers make worthless (but compliant!) UML diagrams/use cases/flowcharts as do programmer who are forced to create them. Good programmers make good ones or don't need them.

  31. Re:A recipe for disaster by Axe · · Score: 2, Informative
    UML and other modelling fads I would not lump all modeling tools into FAD category. 65-page design is excessive - couple clear diagrams, in whatever standard you like will make wonders in your OWN understanding, of what you are about to write, allow you to communicate clearly with other team members. Visualizing is good.

    Formal checkins. Make you own branch and go butt nutty in it. Sync to the trunk often. Let them review your changes and integrate on their own pace. Code review. Once again - having anybody - even inferior programmer to look over your code will do wonders to your own understanding and skills. I am a good coder, and I beg other people to review and comment. The more I ask - the less problems they find - I am getting better. I hope you do not assume that you have no way to improve - otherwise: you are a big fat liar. My goal is to write code so clear that they can understand what and how it does without my help. Large, geographically concentrated development teams. That one I would agree. Adding people slows everything down. Full team should not be above 20 engineers, and some QA - above that, keep splitting projects. If you think it is not possible - you are a lousy architect.

    --
    <^>_<(ô ô)>_<^>
  32. Re: So, you've been a developer for ....a week? by Black+Parrot · · Score: 2

    > Spoken like a true idiot, my friend.

    Surely a troll, IMO.

    > The UML is NOT a fad.

    Yeah, I'm usually pretty cynical about this kind of stuff, but I've found UML useful for documenting the basic structure of very complex programs.

    --
    Sheesh, evil *and* a jerk. -- Jade
  33. Re:What a waste of time and money! by cide1 · · Score: 2

    Thank you, this needed to be said. Developers do not recompile every object file when they build a new binary, only what has changed. The master build is only important so that every one is linking against about the same code, and there is one standard that is referred to as the teams output.

    --
    -- the computer doesn't want any beer, no matter how much you think it does. NEVER, EVER feed your computer beer.
  34. Well, I stand corrected. by Russ+Steffen · · Score: 2, Funny

    I always figured that their development methodology invloved a room full of an infinite number of monkeys typing into Notepad. Learn something new everyday.

  35. Xeons by xrayspx · · Score: 3, Insightful

    They have to be Xeons, AFAIK, non-Xeon Intel CPUs won't do 4-way. And even if you CAN do 4 way on regular PIII's, which you cannot, MS wouldn't, they would have Xeons.

    I'm imagining this machine to be a Compaq 6400r or the like, from the timeframe of the build it's probably 550s or 700(?), since they have a very close relationship to Compaq for servers.

  36. 4 P3 by thopo · · Score: 5, Informative

    sometimes it makes sense to read the article before you comment. (i know the chance is smaller to get modded up ...). the article says:

    Complete build time is 8 hours on 4 way PIII Xeon 550 with 50Gb disk and 512k RAM

    --
    keep it simple.
    1. Re:4 P3 by PacoTaco · · Score: 3, Funny
      and 512k RAM

      Maybe adding some RAM would help. :)

    2. Re:4 P3 by kubrick · · Score: 3, Funny

      They don't need much more though -- after all, 640 KB should be enough for anyone. :)

      --
      deus does not exist but if he does
  37. Step aside, hippie. by nobodyman · · Score: 3, Informative

    UML and other modelling fads.

    While UML isn't the end-all, be-all, it is certainly not a "fad". When it comes right down to it, your will need to be able to describe the architecture of your code with something more than comment-lines and manpages. And, with the "U" in UML standing for "Unified", the is the ability for a new-hire developer, or perhaps the purchaser of your source-code, to understand what the hell is going on without pouring over millions of lines of source code.

    Code review is a power trip and best

    I suppose you'd rather accept source code sight-unseen? True, there are good and bad ways to conduct code reviews, but all the code reviews I've been a part of have been a fairly easygoing experiences and almost always helpful. Sometimes you really need another set of eyeballs to catch problems. Isn't that one of the good aspects of OSS??

    Large, geographically concentrated development teams

    I'm torn on this one. Yes, it's bad to simply throw a large number of developers on a team (unless you break them down... way down). On the other hand, you can't tell me that it's not easier to resolve a problem by walking over to the co-worker in the next cube than than email the co-worker who lives thousands of miles away. Didn't the formal release of Mozilla 1.0 get held up because a few key developers had not signed off on the new open source license and they simply could not be found??

  38. Reading the Slideshow you'll find... by sweede · · Score: 4, Informative
    that the 8 hour, 4 way p3, 50 gig drive compile was the OLD WAY of doing Windows 2000 based on how the developed Windows NT.

    the later slides describe the NEW project resource management and development processes for the continuing development of Windows 2000 (before and up until after the release?)

    Slides 23 and up tell you what they did and how well everything works on a project as large as Windows 2000 is.

    This slide gives a sumary of the new build processes http://www.usenix.org/events/usenix-win2000/invite dtalks/lucovsky_html/sld033.htm

    --
    I follow the SDK and GDN principles.. Spelling Dont Kount, Grammer Dont Neither
    1. Re:Reading the Slideshow you'll find... by Rubbersoul · · Score: 2

      Well they kind of did ... they helped IBM with os/2 for a bit and then decided Creating NT would be better. So I suppose on could say NT was created on its bastard half cousin or something :)

      --
      man .sig
      No manual entry for .sig.
    2. Re:Reading the Slideshow you'll find... by spongman · · Score: 2

      they did, Microsoft wrote OS/2 (versions up to, and including 1.3). Up until the internal rollout of NT3.51 most, if not all of the servers (email, file, print, RAID, etc...) inside MS were OS/2 1.3.

  39. ...kernel, your chosen libc, other libs... by dpilot · · Score: 3, Interesting

    But here is part of the whole point...

    The Linux system I'm running when not booted to the Dark Side (My daughter was running Age of Empires - more Dark Side software.) isn't a single chunk that has to be built as one unit. The kernel's one piece, and each lib is another. To be sure, some libs won't work without specific versions of others, so the pieces aren't all independent. But it's still not all one giant chunk.

    They're essentially making the RedHat distribution into one giant build. Kind of like Gentoo, which someone else brought up, and is a very appropriate comparison for build times.

    But even with RedHat or Gentoo, it's not one giant chunk. I've upgraded pieces of my RedHat for years, and to be fair, Microsoft issues fixes. But there's still a difference, in that I have a better understanding of what RedHat's doing with an update, and better understand what parts of my system are affected.

    While there may be modularity inside Windows, it appears to be intentionally hidden from the end user. I wonder if that's part and parcel of proprietary software, or if it's a side effect of the legal team arguing that Windows is "integrated" and IE can't be unbundled.

    --
    The living have better things to do than to continue hating the dead.
    1. Re:...kernel, your chosen libc, other libs... by Fulcrum+of+Evil · · Score: 2

      I wonder if that's part and parcel of proprietary software, or if it's a side effect of the legal team arguing that Windows is "integrated" and IE can't be unbundled.

      I would argue that it's for ease of testing - you build a development CD and a release CD. If the release Cd passes, you can them release that very Cd to manufacturing.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
  40. says it all by 0WaitState · · Score: 4, Interesting

    From the presentation:

    "Anything that crashes the OS is a bug. Very radical thinking inside of Microsoft considering Win16 was cooperative multi-tasking in a single address space,..."

    So the BSODs were caused by the old-timers? Were they also the ones who designed in the feature that every fucking install of an application requires a reboot?

    --

    Remain calm! All is well!
    1. Re:says it all by BlowCat · · Score: 2, Interesting
      Shall we dig up the Linux Kernel 1.x series and point and laugh?
      My first Linux kernel was 1.0.9. I don't remember anything funny about it. I'm sure I didn't have to reboot the system to change the IP address. That kernel could not boot on one of my computers, but once it was running, I could not crash it. Kernel panic was usually caused by new hardware. I don't remember any sudden panic during e.g. compilation.

      What was your first kernel and what was so funny about it?

    2. Re:says it all by HiredMan · · Score: 2



      Anything M$ v3.x ~= v1.x of anything else.

      That seems about right. ;)

      =tkk

    3. Re:says it all by BlowCat · · Score: 2
      This is true for any version of the kernel. If you have a kernel without sound support, you have to recompile the kernel to get sound.

      Modules solve this problem only in part. Compiling new modules for the old kernel usually works, but is not guaranteed to work. In particular, NFS client support cannot be added witout reboot.

    4. Re:says it all by JaredOfEuropa · · Score: 3, Interesting
      Were they also the ones who designed in the feature that every fucking install of an application requires a reboot?
      Most applications worked fine if you'd click "No" when it asked you to reboot. The reason for most applications asking for a reboot is the way installer tools like InstallShield work under Windows 95/98/NT At the end of an InstallShield script one can insert a statement that handles te reboot. IIRC the Installshield manual suggested a number of cases in which case you will need a reboot (some of these cases did not in fact require rebooting).

      So what happened? Most developers did not bother finding out whether their install process requires a reboot at the end; out of lazyness they just assumed it always does, and they made the user reboot every time "just to be safe".
      --
      If construction was anything like programming, an incorrectly fitted lock would bring down the entire building...
    5. Re:says it all by sfe_software · · Score: 2

      Most applications worked fine if you'd click "No" when it asked you to reboot.

      Also, a lot of applications would require a reboot if being installed under Win9x but not under Win2k. Rather than release two separate installers or check $WINVERSION, they just prompt for a reboot anyway.

      Similar to how most installers tell you to shut down any running applications. This is only required if the installer is updating runtimes that are in use, which for most userland applications is not often.

      I never shut down running programs and almost always click "No, I'll reboot later" under Win2k; very rarely do I have to actually reboot for a newly installed application to work. Even some drivers will work without a reboot...

      --
      NGWave - Fast Sound Editor for Windows
    6. Re:says it all by LoonXTall · · Score: 2
      What was your first kernel and what was so funny about it?
      I didn't find it terribly funny, but here goes.

      Kernel 2.2.16-22 of Red Hat 7.0. It didn't compile. I had about a 50% success rate compiling my own Linus kernels. (2.4.x, x=0,1,2,4,5,6,9,12,13,17.) Then, kernel 2.4.18-3 on RH7.3 could compile, if you beat on it hard enough, but wouldn't boot.

      I was beginning to think that expecting a release to work out of the box was expecting too much. Then I met the FreeBSD ports system.
      --

      ~~~LXT~~~
      Life is like a computer program: anything that can't happen, will.

    7. Re:says it all by BlowCat · · Score: 2
      RedHat has a policy that all their packages must be compiled by RedHat without manual intervention in some controlled build environment, which only uses RedHat packages. An exception is made for closed-source projects, such as Netscape (they are reassembled into packages without compilation), but not for open source projects. One of the reasons why RedHat doesn't ship OpenOffice is because building it requires Sun JDK, which is not a part of RedHat Linux.

      As far as I know, the Linux kernel itself doesn't have to pass a compile test with maximum features enabled to be released. This is bad and should be fixed.

  41. Re:A recipe for disaster by dinotrac · · Score: 2

    One, I've always found code review beneficial for a project. Weaker coders learn good habits; stonger coders teach good habits

    There is code reveiew and there is code review. I tend to take a very sour view of formal code review meetings, except under special circumstances: Better understanding problem code, guiding new programmers (and, even then, I'm not sure) and carefully reviewing things that a) have to work very well and b) must be very well understood by those whose code will interact with them.

    Formal code reviews, unless managed very well by a competent and confident moderator, can easily degenerate into "See what I know!" fests whereby lots of folks who haven't lived and died with a problem pile on the person who has.

    Formal code reviews often have an unintended consequence: they can (not must, but can) reduce the level of informal review, coordination and help that takes place. You know what I'm talking about : "Leave me alone, kid. I've got my own schedule to meet. Besides, that's what the code review is for."

    Informal code reviews -- "Hey Jack, take a look at this, would you?" should be happening all of the time. Some managers (and developers) may believe that time spent huddled over a terminal together is half as productive as time spent alone in front of a terminal, but nothing could be further from the truth.

  42. Windows, a software engineering odyssey by The+Pi-Guy · · Score: 2

    BIL 9000: I'm sorry (Judge) Jackson, I can't let you do that.

  43. Re:A recipe for disaster by startled · · Score: 4, Interesting

    We have an automated script to take your changed files and copy 'em over to a share. Then we send out an e-mail to the team (small) and say it's going to be committed soon. One person is assigned "primary", and must look at it; everyone else can optionally.

    It doesn't take much time, but it's only the smallest CRs that get away without at least a few changes. Sometimes it's just comments, sometimes it's a better way to do something. At the least, everyone has a better idea what's going on in code they're not in right now, but very well might be in the near future. An added benefit is that people who see CR coming clean up their code a bit more than usual.

    I agree-- formal CRs suck in most cases (although some critical apps developers like them for some bits of code that might, say, kill someone if they malfunction, or that take $10,000 to test). But the e-mail deal works really well for our team. But we don't have any assholes or know-it-alls, so that helps.

  44. I see you missed the point by Anonymous Coward · · Score: 2, Insightful

    If you go through the whole presentation, you will see that when the Windows 2000 team was working as a single centrally-co-ordinated group, it was slowing them down and causing stagnation.

    It was only when they broke up into smaller, relatively independent groups, that they managed to regain some of the earlier productivity from their NT days.

    And that's how Linux development works -- many small, relatively independent development groups.

    With Windows, Microsoft even ties the applications into the Operating System, with the purpose of making the use of non-MS applications "a jolting experience" (as an internal Microsoft memo said about IE versus Netscape).

    But with Linux, everything is developed to standardized interfaces. That makes it possible for the Kernel development to progress independently of the GUI development, which is independent of the development of the Desktop Managers, which is independent of the development of the Applications, which is independent of Distribution Packaging, and so on.

    Even within the larger projects, such as the Kernel, or Mozilla, the work is divided into smaller, relatively independent modules.

    And that's one of the reasons why Linux development is progressing so much faster than Windows.

    1. Re:I see you missed the point by jeremyp · · Score: 2

      And that's one of the reasons why Linux development is progressing so much faster than Windows

      On what evidence do you base the assertion that Linux development is progressing faster than Windows? Actually, we should talk about open source, not just Linux - Mozilla is not part of the Linux development effort although Linux is one Mozilla platform. Incidentally, Mozilla has taken four years to get to release 1.0. In that time, M$ has released at least two major versions of IE.

      If you analysed the open source development effort, I think you'd find that it is almost unbelievably inefficient in comparison to any commercial software vendor. It's only saving grace is that much of the time and effort put in is for free. There are huge amounts of duplication of effort.

      Take the desktop situation as an example. There is KDE and Gnome, both of which are relatively usable but nowhere near as slick as the current Windows desktop interface. Imagine if all the effort put into Gnome and KDE had been concetrated on just one desktop product.

      Take the desktop PC experience which is M$'s strongest area (only strong area?). Put the M$ state of the art against the open source state of the art in front of the average non-technical computer use. The M$ product looks better, is better integrated, is slicker, is easier to install, is easier to add new hardware to, is easier to use.

      M$, an organisation which is probably much smaller than open source in terms of headcount and which has to pay its programmers has kept ahead of OS in at least one area and it does this by being a managed organisation.

      BTW development at M$ is probably done to standardised interfaces, it's just that they don't publish them all to the outside World.

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    2. Re:I see you missed the point by EastCoastSurfer · · Score: 2

      They talked to the Microsoft engineers, but they had no better documents, nor did they fully understand all the quirks of SMB.

      I am sure the MS sent their real smb engineers to talk to the samba team. The samba team most likely spoke to some intern(reading off the same public docs). Do you think any company would send their real engineers out to tell a competitor how their closed protocol works?

    3. Re:I see you missed the point by ranulf · · Score: 2
      They talked to the Microsoft engineers, but they had no better documents
      Do you think any company would send their real engineers out to tell a competitor how their closed protocol works?

      SMB is neither closed protocol or Microsoft's. Is was, in fact, originally in the PC-LAN package developed by IBM and adopted by Microsoft in the early 80s. That's why there was so much public information about how it worked.

      FWIW, NetBIOS was another IBM innovation and that too was well documented publically.

    4. Re:I see you missed the point by himi · · Score: 2

      You'd probably want to ask Jeremy Allison or Andrew Tridgell that - /they're/ the ones who've said that. Somehow, I doubt they're stupid enough to not know what was going on, particularly after spending ten years working on the problem.

      himi

      --

      My very own DeCSS mirror.
  45. Code Review by Bouncings · · Score: 2

    The problem with code review is that programmers have egos. Big ones. They just get arrogent and defensive, even if they're good programmers. I've worked with enough to figure this out, particularly about the ones who have been programming for a long time, but have always done shitty jobs.

    --
    -- Ken Kinder ken@_nospam_kenkinder.com http://kenkinder.com/
    1. Re:Code Review by LoonXTall · · Score: 2

      Note that OSS uses code review extensively. "To enough eyeballs, all bugs are shallow." Furthermore, even OSS programmers make mistakes--I have read with my own eyes a line of a Linux 2.4 kernel patch (NOTE: "stable" kernel!) that changed "#eliif" to "#elif". Would not some sort of review find that? Someone could probably write automated tools for that kind of thing. "Lint" might be a good name.

      --

      ~~~LXT~~~
      Life is like a computer program: anything that can't happen, will.

  46. The numbers aren't that large by Twillerror · · Score: 3, Insightful

    Remember that Windows 2000 is essentially everyone who is working on the linux kernal, basic distribution, and X. If the number includes Explorer, which could be likened to Mozzila and includes management, testers, and all the design specialistics ( people who do research to make it user friendly, or handicap accesable, I would think it's pretty small.

  47. Re:Linux Distros? by glwtta · · Score: 2
    What's a full linux distro? I'd say the times vary considerably depending on how you answer that question; that system could have a lot less or a lot more to it than windows.

    Besides, how do the compilers compare in speed? (there'd be an almost totally useless benchmark)

    All in all, I would say that a comparable gnu/linux system (kernel, base stuff, X, KDE or Gnome, plus a few other bits and bobs) would take a bit less time than this, but that's just a guess at best. Perhaps some of the Gentoo and LFS users can shed some light?

    --
    sic transit gloria mundi
  48. NT kernel problem is not software engineering by g4dget · · Score: 4, Insightful
    Compared to the rest of Windows, the NT kernel seems reasonably well engineered. The problem I think is that the end product is a combination of features that marketing thinks really need to go in there for their feature check lists, and pet ideas of the developers/researchers.

    UNIX and Linux are different. UNIX (at least Research UNIX) was constrained by its paradigms: it was vigorously policed by its developers. For Linux, something doesn't make it into the kernel unless it really scratches an itch that a lot of people have--the feedback is immediate and direct: no interest, no developers.

    Microsoft software development doesn't operate in a competitive market of ideas (let alone a competitive market), it doesn't have a paradigm to focus it, and it doesn't even have resource constraints to focus it. It's nice that they make the software engineering work out, but the end result still is mediocre at best.

  49. Re:Your design process is the real disaster recipe by Bouncings · · Score: 3, Insightful
    Apparently... to you... if it works... ship it!
    If I had a frag each time I heard a manager say something almost verbatium to that, I would be Quake champion of the universe. :) "If it works, ship it" is the creed of all of corporate America, not just with software. Remember that article a while ago on why software sucks? It's because programmers are rarely allowed to write software that doesn't suck. It's a mandate. Quality control is something us programmers have wanted for a long time, along with the occational chance to refactor, to document, and to test. Such luxeries are never offorded to us, but we always get the blame from the users when PHBs force each step of the development process prematurely forward, if not skip steps entirely.
    --
    -- Ken Kinder ken@_nospam_kenkinder.com http://kenkinder.com/
  50. Re:A recipe for disaster by cant_get_a_good_nick · · Score: 5, Informative

    The proper care and feeding of trolls...

    Eitehr you're a troll, or you've never done any real development.

    UML, can't comment on. Never did any. What I can say is that design is important, and shooting from the him on 20million lines of code won't get you very far. If UML helps you design, use UML.

    Formal checkins. In large complex projects, you need to be absolutely sure about your units. So many places for things to interact, if you don't have them as solid as you can get it, you'll get so many interaction bugs you'll never get anything done.

    Developer time costs $20-40 an hour. Ha, now I know you've never done real programming. Developer wages start maybe at $30/hr (not $20), up to $100/hr at spots. Thats just wages, not benefits, taxes all that stuff. If you have no experience in big projects, don't talk.

    Code review Code review is easily the best way of debugging. Study after study find that Code reviews find more bugs per unit of time than any other technique. as side benefits, it also transmits techniques from developer to developer. This comes from developers who want to learn and 1) too shy to ask 2) don't know that there is a better way. I learned something in code reviews, some techniques I never thought of.
    Can it be a power trip? yeah. CAn it lead to a clash of egos? yeah, but thats up to the review lead to control. A good review lead will keep that in check.

    Large, geographically concentrated development teams
    Not surprisingly, this is the model that Linux and most Open Source software uses
    They have no option because they can't pay developers, so no chance to get them in a concentrated area. There are plusses and minusses with the concentration.
    why OSS is phenominally successful compared with any of its proprietary competition
    Sales? No contest. MS.
    On what definition of success? Bugs? I've seen some really shitty OSS software. yes, the kernel is high quality, Apache, FreeBSD, others.

  51. Requisite Karma Whoring... by wrinkledshirt · · Score: 2, Interesting

    Full text of Proudly Serving my Corporate Masters here...

    Just in case you wanted some more insight into working for the company. Fascinating stuff.

    --

    --------
    Bleah! Heh heh heh... BLEAH BLEAH!!! Ha ha ha ha...

    1. Re:Requisite Karma Whoring... by theolein · · Score: 2

      Good book, just read most of it. One can see the guy worked for Microsoft: Towards the end he couldn't stop using the word "Evangerlism" in every second sentence. If there was ever anything that shows how the company painsts itself onto it's employees, this book is it.

  52. Re:A recipe for disaster by Gumber · · Score: 2

    I would never defend the quality of MS products but anyone who has worked on large products with many existing custoemrs in a large software company like an Oracle, Microsoft or IBM will understand that it is simply impossible to only hire expert programmers whose work never needs to be checked by anyone else and who don't need any supervision.

    Not to mention that any such company has a responsibility, driven by enlightened self-interest, to turn Jr. programmers into expert programmers.

  53. Re:Yep. by jesser · · Score: 2, Interesting

    ideally, the build will only break if two changes on the same night contradict each other

    Another reason a change might break the build is if the software builds on multiple platforms. I think this is one reason Mozilla has dozens of computers continuously building it rather than one nightly build that may or may not compile the first time. This doesn't catch all checkins that make Mozilla unusable (we have a "smoketest" team that make sure each nightly works well enough to test it), but it does give everyone immediate feedback if a checkin stops the build from compiling or makes it fail some automatic tests.

    Of course, it helps that compiling Mozilla takes less than an hour.

    --
    The shareholder is always right.
  54. Re:MS Coders by God!+Awful · · Score: 3, Insightful

    Whuh... Did I just hear a slashdot geek call Microsoft employees even bigger geeks? I'd take what your friend told you with a grain of salt, especially since it doesn't make much sense. I actually worked at Microsoft for a few months as a university student, and my impression was that the workers there were pretty normal, as far as coders go. I've met a lot wierder people since then.

    I was working on a pretty trivial part of NT, so the build system didn't affect me. However, when you walked around the halls you could see who checked in code that broke the build because they would have a "build breaker award" taped to their office window. It seemed to be in good fun, but I suppose it could result in a CYA mentality.

    Also, I remember there being problems with source control, like the article mentioned, though not specific to NT. I seem to remember that Word Viewer used a different codestream from Word and the sample files in the SDK are merely very out-of-date versions of some of the small apps that ship with Windows.

    -a

  55. Microsoft Found Solutions to Their Problems by AaronLuz · · Score: 5, Insightful

    Given the tone of most of the comments here, one might think that the slides merely reveal Microsoft's errors. In fact, they indicate what problems the company faced scaling their NT development team from 200 to 1400 programmers and their solutions. The conclusion is, "With the new environment in place, the team is working a lot like they did in the NT 3.1 days with a small, fast moving, development team."

    As Linux grows, it is headed for the same sorts of problems. The open source movement can learn a lot from Microsoft's struggles. The fact that Linus opted to use a new source control system -- just as Microsoft realized that their in-house system was not up to the task and so switched -- gives me hope.

    P.S. May we please have better summaries for the articles on the front page?

  56. Re:Open the code! by glwtta · · Score: 2

    they already do charge a "bunch" of money for access to the source code.

    --
    sic transit gloria mundi
  57. Unfortunately, the goals were changed by Anonymous Coward · · Score: 2, Insightful

    The original team's goals, as you listed them, look great, especially for a server OS, and the positive results showed in NT 3.51.

    Unfortunately, Mr. Gates was not as technically competent as the original NT team, and he provided a new set of goals for NT 4.0:

    1. Snazzy GUI - For a server OS!

    2. Good GUI performance - Run video drivers in kernel mode (ring zero).

    3. Cool new features - Good games platform.

    4. Other considerations, such as reliability and compatibility, are secondary.

    The fact that Bill Gates overrode the goals of the original team made it impossible for NT 4.0 to compete with Unix in the high-end server market.

    Now, even if Microsoft happened to get it right with Windows 2000, no one will believe them.

    Unfortunately, if you look at Netcraft's measurements, you will find that the major W2K sites has uptimes averaging less than 10 days, while the major Linux sites tend to have uptimes of around 100 days. That, combined with all the security holes in Microsoft's software, will tell you that they still don't have it right.

  58. Zerg by Lord+Omlette · · Score: 2

    Slide 19? Anyone? I can't see it in IE 5.01 sp2 or Opera 6.02...

    What is serialized development?

    Anyone use SourceDepot? Opinions?

    WTF is that big X in Slide 31? Zero parallel development?

    --
    [o]_O
    1. Re:Zerg by Kevinb · · Score: 2, Informative
      View Source is showing that slide 19's content is commented out for some reason. Here it is:
      • Serialized Development

      The model from NT 3.1 -&#062 Windows 2000

      All developers on team check-in to a single main line branch

      Master build lab synchs to main branch and builds and releases from that branch

      Checked in defect affects everyone waiting for results

  59. Re:standard linux praise... by Waffle+Iron · · Score: 3, Funny
    Depends on the starting stage. Stage 1 is literally a minimum system that builds absolutely everything. Stage 2 has GCC and some other things (IIRC) built, and stage 3 has a prebuilt base system of the more common packages.

    All for wimps. I always start from stage -3. This means no machine-readable media whatsoever and a blank system EPROM. Nothing but source code printouts.

    After 36 hours of entering bootstrap code via a bank of toggle switches, you can get to stage -2 (TTY keyboard and video on a temporary BIOS). After this, you've still got a long road to hoe before you get to a login prompt. It's well worth it though, if you want to know exactly what your system is running.

  60. Re:BS detected! by BZ · · Score: 2

    Two words:

    Library Stripping.

  61. USB devices can require reboot on Win2K by alienmole · · Score: 2

    I've seen Windows 2000 request a reboot when moving an installed USB modem from one USB port to another. So it's not as though unnecessary reboots are something from Microsoft's dark, distant past.

    1. Re:USB devices can require reboot on Win2K by spongman · · Score: 3

      the USB reboot is requested by the 3rd party driver, not the windows kernel.

  62. Why sad? by alienmole · · Score: 3, Insightful

    Not everyone can know everything. Why discriminate against good information based on its age?

    1. Re:Why sad? by toofast · · Score: 2

      I agree. I haven't seen this floating around in the last 2 years, and I found it cool to read this stuff.

      People need to stop griping about everything.

  63. Re:A recipe for disaster by DuranDuran · · Score: 4, Insightful
    > Code review is a power trip and best, and a drain on morale at worst.

    Can you see the spelling error you made in this sentence? Did you mean to make that error?

    If you can't even type error-free prose, how could you be expected to create error-free code?

    People make errors. Code review helps reduce the effect of those errors.

    --
    "You can justify anything by putting it in quotes, adding a famous name and making it a sig" - Albert Einstein
  64. 8 hours? Forgot something? by DarkHelmet · · Score: 4, Funny
    Complete build of win2k time is 8hrs on 4way PIII and requires 50GB of hard drive space.

    Some goofy Microsoft Intern forgot to put -j 4 along with compliation.

    Either that, or they compiled it on Win9x (which has NO multiprocessor support).

    --
    /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
  65. Re:Only took 1.5hrs for Windows XP by tunah · · Score: 2
    No! They used win98 to compile 2k (crashed eight times)

    Then they used 2k to compile xp (crashed once)

    OR:

    Time to compile 2k: 8hrs

    Time to drag 'Luna' into 'Skins' folder: 2 min

    Time to play minesweeper: 1hr 28 min.

    --
    Free Java games for your phone: Tontie, Sokoban
  66. Adaptive solution by theolein · · Score: 2

    It looks like Microsoft adapted well to the problem of source control and building.

  67. Software Engineering at Microsoft by epsalon · · Score: 3, Funny

    Well, that's an oxymoron for you!

  68. 1400? Try 3100! by Queuetue · · Score: 4, Interesting

    Take a look at slide 19 - 1400 devs, but 1700 testers. Do you suppose that means that Win2k had 3100 people working full-time on it? Lowballing the numbers (55k per dev, 45k per tester):

    1,400 * 55,000 = 77,000,000
    1,700 * 45,000 = 76,500,000
    153,500,000 a year * 3 years (from slide 3) = 460,000,000

    Include an overhead multiplier
    460,000,000 * 2.4 = 1,105,200,000

    And we wind up with a rough US$1.1BB.

    This suggests that win2k represents 20 million SLOC, Just slightly higher than RH 6.2, at 17 and change.

    His cost estimates place RH 6.2 at US$614,421,924.71

    I suspect MS probably pays more per dev, but I have no proof, so I'll stick with the industry averages. Also, testers may have been shared across projects, MS can pool resources and bring overhead lower, etc...

    I'm not drawing any conclusions, just compiling data...

  69. Re:A recipe for disaster by petis · · Score: 2
    Code review is easily the best way of debugging. Study after study find that Code reviews find more bugs per unit of time than any other technique
    If I recall correctly, you get back on average 20x the invested time in quality assurance using code review. (As compared to not having code review but using the same testing procedure, checkins etc and fixing the bugs as you find them during testing).

    Can't find that book on software quality where I read this, would love to give a reference to research on this subject.
  70. Showstopper versus this Info by zero_offset · · Score: 5, Interesting
    (Yes, user johnjones already posted about Showstopper, but I have more to say than "this book was funnnneee..."). So, as johnjones pointed out, there is a book related to this subject: "Showstopper! The Breakneck Race to Create Windows NT and the Next Generation at Microsoft" by G. Pascal Zachary.

    What's interesting is comparing what Showstopper says to the claims in these slides.

    The slides suggest early NT development was done by a small team of super l33t c0d3rz who took care of business and frowned upon slacking. However, the picture painted by the book is dramatically different -- people were forced to work around the clock, the team was dominated by a small gang of guys who were basically complete assholes, everybody walked on eggshells for fear of pissing off Dave Cutler, The New Savior, and NOBODY in the group ever knew what was really going on. The whole project was shrouded in mystery, even to people on the team, because basically everything existed in Cutler's head.

    The only thing I see where Showstopper and the slideshow firmly agrees is the slide labeled "Goal Setting".

    I personally have a lot of other opinions about why some of the statistics may pan out the way they do (for example, how much hardware did you REALLY have to test with in NT 3.1 days, versus Win2K?) but I want to stay focused on the Showstopper/slideshow discrepancies, so I'll leave it at that.

    The thing to realize about Showstopper is that it was based almost entirely on interviews with the people who were involved with the initial NT coding effort.

    By comparison this slideshow was written by one guy, Mark Lucovsky, who gets lightly flamed in Showstopper (at best). Oddly, I grabbed Showstopper off my bookshelf and opened it straight to the page describing Lucovsky. Weird. Anyway, here are excerpts from a single paragraph: "...smart but immature... nevertheless angered teammates with his skepticism and self-serving judgements... relentlessly critical of others, constantly probing for weaknesses... 'Until you prove otherwise, you're wrong and he's right.'" Whew, hate to be THAT guy. It gets worse. One page later, a paragraph opens by simply saying, "Many people felt that Lucovsky was a jerk."

    Given that, it wouldn't surprise me if Lucovsky was still just trying to justify the fact that the early NT dev team was comprised of a bunch of flakes who had to burn the candle at both ends to actually deliver anything.

    Please understand I'm not necessarily defending any current MS practices, or even Win2K (which is still vastly superior to NT3.51). I've personally worked VERY closely with groups inside MS at different times (a couple times on-campus in Redmond), and I'll be the first to tell you the company is bureaucratic and packed to the gills with people who don't know what the hell they're doing -- just like every other company that employs tens of thousands of people.

    What I *am* saying is that this slideshow is looking at the past with "rose-colored hindsight" and I believe the motives are suspect at best. Draw your conclusions with a grain of salt. (Enough metaphor-abuse for today.)

    Do like johnjones suggested -- go buy or check-out Showstopper and read it. It's interesting, informative, and it IS kind of funny. It's amazing they were able to produce anything at all. How's THAT conclusion for contrast with the slideshow? ;)

    --

    Slashdot quality declines as the number of hot grits posts decreases. - Provolt's Law, Apr-09-2005

  71. huh? by News+for+nerds · · Score: 2

    So what do you mean by "VC"? With those pretty IDE? "cl.exe" is the compiler/linker, and its linker version is 7 in VC7. nt.dll of WinXP has linker version 7.00, and it's enough.

  72. Build Time by I_am_God_Here · · Score: 2, Informative

    Team size went from 200 (NT3.1) to 1400 (Win2k). Complete build of win2k time is 8hrs on 4way PIII and requires 50GB of hard drive space.

    Big deal I worked on a project that had, at that time, 34 hours or so, that was on a 2 way I think though and 4 years. But the project is still growing, more then tripled, since I transfered, according to my friend that still works on it.

    --

    Capitalism: unequal distribution of wealth
    Socialism: equal distribution of poverty
  73. What a DISMAL culture FAILURE. by crovira · · Score: 2

    The The NT Culture was supposed to be based on "Portability, Reliability, Security, and Extensibility" ingrained as the teams top priority.

    Portability? Apart from the x86 platform, does it run on any other platform?

    Reliability? I still got the occasional blue screen of death in NT 4. (svcpk5) as of last year.

    Security? We had regular virus sweeps and updates were NEEDED every time script kiddies got a new mod and would hammer at our systems.

    Given the fact that the company serfs were still using NT4 and that they weren't allowed to put in multimedia extensions, Flash and other "Sturm und Drang" sillyness while the Solaris boxes ran Oracle for the databases, I'd say that the extensibility wasn't an issue either.

    --
    MSBPodcast.com The opinions expressed here are my own. If you don't like 'em... Think up your own stuff.
    1. Re:What a DISMAL culture FAILURE. by Nadir · · Score: 3, Informative

      Portability:
      NT4 came out on x86, Alpha, PowerPC and MIPS

      --
      --
      The world is divided in two categories:
      those with a loaded gun and those who dig. You dig.
  74. Re:A recipe for disaster by jeremyp · · Score: 2

    OSS is phenominally successful compared with any of its proprietary competition

    Tell me again which OS runs on 90% of desktop PCs around the World.

    As my company has avoided these measures, it has produced a superior product for a very low development cost.

    Is it even 1/100th of the size and complexity of Win2K or any Linux distro?

    Code review is a power trip and best, and a drain on morale at worst

    You weren't doing it properly. If the coder is less than perfect, it will help to improve both the coder and the code. If the coder is perfect, it'll help improve the coding of the reviewers (who naturally are programmers themselves, not management types).

    --
    All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  75. obTOC by msouth · · Score: 2

    I agree! What's next? Reporting something borrowed as something blue? When will it end?

    --
    Liberty uber alles.
  76. Aaaah! by Peter+Harris · · Score: 2

    I have only one thing to say...

    (places tongue inside lower lip and rolls eyes) nuuuuh!

    --

    -- What do you need?
    -- Gnus. Lots of Gnus.
  77. Re:What a waste of time and money! by Gannoc · · Score: 2
    think Linux could gain by creating a kind of unofficial management structure to better co-ordinate some of the projects.

    I hear that often, but its just not true:

    Management Guy: "When is your part going to be done?"

    Programmer Guy: "I don't know, i'm playing Warcraft 3 this week. Whenever I get free time."

    Manager Guy: "Well everyone, we're going to have to move the schedule up a few days because of the Programmer Guy. Lets all try to remember we're on a team here." (clicks a few spots in MS Project)

    Programmer Guy: "Kiss my ass! Do it yourself."

    Volunteers == no firings/compensation == no enforceable deadlines == no reliable planning == no management possible.

  78. Source Safe not used much in Redmond by Genus+Marmota · · Score: 2, Interesting
    I can confirm this. When the dev who had been doing trivial bugfixes on it handed me the project (actually the "reference machine" if you can believe that shit) he said "Source Safe isn't." It got pretty much zero attention while I was there.

    Maybe some folks are using it there, but in product development it was not considered an acceptable option for source code control.

  79. Re:A recipe for disaster by marick · · Score: 2

    The rest smacks of xenophobia. I don't buy into the common myth that style and naming conventions are critical to maintainability.

    Seriously, some people use crappy style and variable names. At my last job, someone had written this complicated function using variables like: s1, s2, s3, d1, etc. It made it very difficult to figure out his code, and eventually, I had to change all the names just so I'd be able to read the code a month later.

    It's much easier to fix bugs in someone else's code if you can read it. If you can't, you're screwed. You can call it xenophobia if you'd like, but honestly, I'm expressing my experience.

    Anyone who can read a complicated C declaration isn't going to have any problem with non-politically-correct variable names or different styles.

    Good straw-man. My problem isn't with non-politically-correct variable names (functionToFixBugInLinux() ). My problem is with unintentionally obfuscated code.

    Style is arbitrary but functionality is not. If the code review process doesn't consider program correctness, it's a waste of time.

    About program correctness: most of the time it's not worth the time required. And no, I'm not talking about security or crypto or compression or anything like that. Those sections of your code should be provably correct. But proving the correctness of your little GUI app is just silly.

    On the other hand, style may be arbitrary to you, but for me, style is very important. The parts that bother me are when someone has written a bunch of button code with names like "b1, b2, b3". Or logic like a=((a=read(n)-4)?(b+5):(b+3)). Even if it works now, it will never be maintainable later.