Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Microsoft code commenting

Options
  • 17-02-2004 6:45pm
    #1
    Registered Users Posts: 7,580 ✭✭✭


    the following is a story about the microsoft source code doing the rounds on the inter thingy. Point is the comments the programmers have added for their own use. Should make you feel all snuggly inside.

    http://www.kuro5hin.org/story/2004/2/15/71552/7795

    *edit of course this could be approp for humour forum,
    windows forum, etc... maybe all of them?


Comments

  • Closed Accounts Posts: 9,314 ✭✭✭Talliesin


    Originally posted by uberwolf
    *edit of course this could be approp for humour forum,
    windows forum, etc... maybe all of them?
    Probably all of them, with a different take on it in each one. Anyway I'm going to allow it here.


  • Registered Users Posts: 15,443 ✭✭✭✭bonkey


    Originally posted by uberwolf
    Point is the comments the programmers have added for their own use.

    Don't look too different from many comments I've seen in other code, and comments I make myself.

    Here's some from yesterday's coding :
    //Use GDI+ to implement the -2 autosize setting, because C# is so ****ing broken.
    
    // Add additional event handlers - this has to be done outside the InitializeComponent routine, because the 
    // stupid, STUPID Form Designer will delete event-handler hooks wherever it finds more than one handler assigned 
    // to an event.
    

    Should make you feel all snuggly inside.
    The article concludes that MS are doing a pretty good job. Why is that supposed to make me feel snuggly inside??? :)

    jc


  • Registered Users Posts: 7,580 ✭✭✭uberwolf


    I was amused by
    private\inet\mshtml\src\core\cdbase\baseprop.cxx:
    // HACK! HACK! HACK! (MohanB) In order to fix #64710 at this very late

    private\inet\mshtml\src\core\cdutil\genutil.cxx:
    // HACK HACK HACK. REMOVE THIS ONCE MARLETT IS AROUND

    private\inet\mshtml\src\other\moniker\resprot.cxx:
    // <HACK>
    goto EndHack;
    // </HACK>

    private\inet\mshtml\src\site\layout\flowlyt.cxx:
    // God, I hate this hack ...

    private\inet\wininet\urlcache\cachecfg.cxx:
    // Dumb hack for back compat. *sigh*

    private\inet\wininet\urlcache\filemgr.cxx:
    // ACHTUNG!!! this is a special hack for IBM antivirus software

    private\ispu\pkitrust\trustui\acuictl.cpp:
    // HACK ALERT, believe it or not there is no way to get the height of the current
    // HACK ON TOP OF HACK ALERT,

    private\ntos\udfs\devctrl.c:
    // Add the hack-o-ramma to fix formats.

    private\shell\shdoc401\unicpp\sendto.cpp:
    // Mondo hackitude-o-rama.

    private\ntos\w32\ntcon\server\link.c:
    // HUGE, HUGE hack-o-rama to get NTSD started on this process!

    private\ntos\w32\ntuser\client\dlgmgr.c:
    // HACK OF DEATH:

    and thought others might be as well. sorry :p.


  • Registered Users Posts: 1,726 ✭✭✭gerryk


    so MS programmers are in fact human instead of borgesque bill clones upgraded with 8080 co-pros :D


Advertisement