Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why does Microsoft (MSDN) documentation suck so much?

Why does Microsoft (MSDN) documentation suck so much?

Scheduled Pinned Locked Moved The Lounge
questionjson
22 Posts 15 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K ktm TechMan

    MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

    S Offline
    S Offline
    sashoalm
    wrote on last edited by
    #4

    I don't agree with that, I've always found it quite thorough and detailed.

    In Soviet Russia the government regulates the companies.

    1 Reply Last reply
    0
    • K ktm TechMan

      MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #5

      There was a time when it was good, especially in the days of Dr GUI.

      Software Kinetics Dependable Software

      N P L 3 Replies Last reply
      0
      • K ktm TechMan

        MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #6

        It's also the only documentation, so what are going to do about it?

        1 Reply Last reply
        0
        • N NormDroid

          There was a time when it was good, especially in the days of Dr GUI.

          Software Kinetics Dependable Software

          N Offline
          N Offline
          Nagy Vilmos
          wrote on last edited by
          #7

          Back when you could get a single product onto a CD. As soon as it hit 2 CD's just for VB6 I knew it was FUBAR.


          Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

          1 Reply Last reply
          0
          • K ktm TechMan

            MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #8

            It is actually pretty good, compared to some I have used in the past. If you think MSDN is bad documentation, you really don't want to look at the MSDOS manuals (user or developer) or worse, the original Windows developer documentation.

            Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • N NormDroid

              There was a time when it was good, especially in the days of Dr GUI.

              Software Kinetics Dependable Software

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #9

              Indeed - given the choice between Borland, Oracle and Microsoft documentation, I always preferred MSDN.

              *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

              "Mind bleach! Send me mind bleach!" - Nagy Vilmos

              CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

              N 1 Reply Last reply
              0
              • N NormDroid

                There was a time when it was good, especially in the days of Dr GUI.

                Software Kinetics Dependable Software

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #10

                There's a uxguide that's structured and ordered. Documentation is not a monthly column.

                Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                1 Reply Last reply
                0
                • P Pete OHanlon

                  Indeed - given the choice between Borland, Oracle and Microsoft documentation, I always preferred MSDN.

                  *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                  "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                  CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                  N Offline
                  N Offline
                  Nagy Vilmos
                  wrote on last edited by
                  #11

                  Given those choices, I'd go for gouging out your own eyeballs - get just as much information AND the pain's over quicker.


                  Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                  1 Reply Last reply
                  0
                  • K ktm TechMan

                    MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

                    C Offline
                    C Offline
                    Chris Meech
                    wrote on last edited by
                    #12

                    Yes it has lots of warts. But it still has lots of information that is helpful. I held a very similar view to yours many years ago, but over time, I've come to recognize some of these warts and take what I read with a grain of salt. :)

                    Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

                    1 Reply Last reply
                    0
                    • K ktm TechMan

                      MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

                      M Offline
                      M Offline
                      Marc Clifton
                      wrote on last edited by
                      #13

                      [ramble] It's like retirement benefits. They are affordable when the company is small and the company is going to make a lot of money before anyone retires. Then, the # of people getting the retirement pay starts to increase more than the growth / profit of the company, until retirement benefits starts to become a bigger burden on the company than the active employees. Maintaining documentation is like that too - the more a software company produces, the more the cost of keeping that documentation accurate and current. What we need is a wikipedia-style system where we can update the documentation ourselves - knowledge like what you figured out just vanishes a second later. If you don't use LDAP for the next 4 years and then have to do something again in it, chances are you yourself will have forgotten this gem of wisdom. Has happened often enough to me, both with 3rd party code and with my own code. But what would be really cool is if the IDE was really tied in to the documentation, so when you did a "free foo;" the environment would be smart enough to know that somewhere in the documentation was "do not free this structure." At the moment, we have a huge gap between information and how it's applied. Bridging that gap is what we are going to need tools for in the future. [/ramble] Marc

                      My Blog
                      Computational Types in C# and F#

                      L A 2 Replies Last reply
                      0
                      • L Lost User

                        ktm TechMan wrote:

                        MSDN documentation is the worst documentation ever.

                        From my viewpoint, after working with it for years, I can only say that it's the best I have encountered so far. :)

                        Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                        A Offline
                        A Offline
                        Albert Holguin
                        wrote on last edited by
                        #14

                        Yeah.. I'd say programmers/engineers as a whole tend to make crappy documentation. I think it's fair to say no one is thrilled to make the stuff... X|

                        L 1 Reply Last reply
                        0
                        • A Albert Holguin

                          Yeah.. I'd say programmers/engineers as a whole tend to make crappy documentation. I think it's fair to say no one is thrilled to make the stuff... X|

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #15

                          Albert Holguin wrote:

                          I'd say programmers/engineers as a whole tend to make crappy documentation

                          Can you point out the crappy piece for me? As far as I can see, it's structured in a predictable way. The texts are clear, the exceptions all named an explained. Even code-examples in each .NET language, for each version of the .NET language. As a user, I can add annotations, and there's a huge amount of walkthroughs and howto's that walk you through a task step by step. It is NOT a learning-book, that I agree. That's why we call it "documentation". Try creating an MSI-like installer for Ubuntu, and we'll talk again :)

                          Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                          K J 2 Replies Last reply
                          0
                          • M Marc Clifton

                            [ramble] It's like retirement benefits. They are affordable when the company is small and the company is going to make a lot of money before anyone retires. Then, the # of people getting the retirement pay starts to increase more than the growth / profit of the company, until retirement benefits starts to become a bigger burden on the company than the active employees. Maintaining documentation is like that too - the more a software company produces, the more the cost of keeping that documentation accurate and current. What we need is a wikipedia-style system where we can update the documentation ourselves - knowledge like what you figured out just vanishes a second later. If you don't use LDAP for the next 4 years and then have to do something again in it, chances are you yourself will have forgotten this gem of wisdom. Has happened often enough to me, both with 3rd party code and with my own code. But what would be really cool is if the IDE was really tied in to the documentation, so when you did a "free foo;" the environment would be smart enough to know that somewhere in the documentation was "do not free this structure." At the moment, we have a huge gap between information and how it's applied. Bridging that gap is what we are going to need tools for in the future. [/ramble] Marc

                            My Blog
                            Computational Types in C# and F#

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #16

                            Marc Clifton wrote:

                            But what would be really cool is if the IDE was really tied in to the documentation

                            XML Documentation. ..which doesn't mean that you could not come up with a better alternative. Write a plugin for VS and an article for CP, we'd all benefit.

                            Marc Clifton wrote:

                            At the moment, we have a huge gap between information and how it's applied. Bridging that gap is what we are going to need tools for in the future.

                            I disagree. The info is all there, but it cannot be applied in a JIT-manner. The problem here is rather "education".

                            Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                            1 Reply Last reply
                            0
                            • M Marc Clifton

                              [ramble] It's like retirement benefits. They are affordable when the company is small and the company is going to make a lot of money before anyone retires. Then, the # of people getting the retirement pay starts to increase more than the growth / profit of the company, until retirement benefits starts to become a bigger burden on the company than the active employees. Maintaining documentation is like that too - the more a software company produces, the more the cost of keeping that documentation accurate and current. What we need is a wikipedia-style system where we can update the documentation ourselves - knowledge like what you figured out just vanishes a second later. If you don't use LDAP for the next 4 years and then have to do something again in it, chances are you yourself will have forgotten this gem of wisdom. Has happened often enough to me, both with 3rd party code and with my own code. But what would be really cool is if the IDE was really tied in to the documentation, so when you did a "free foo;" the environment would be smart enough to know that somewhere in the documentation was "do not free this structure." At the moment, we have a huge gap between information and how it's applied. Bridging that gap is what we are going to need tools for in the future. [/ramble] Marc

                              My Blog
                              Computational Types in C# and F#

                              A Offline
                              A Offline
                              Andrew Rissing
                              wrote on last edited by
                              #17

                              For some reason, my mind goes to Code Contracts[^]. It'd be like taking Code Contracts and iterating them to the next level.

                              1 Reply Last reply
                              0
                              • K ktm TechMan

                                MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

                                J Offline
                                J Offline
                                jim lahey
                                wrote on last edited by
                                #18

                                I think that's a bit unfair. I use MSDN on an almost daily basis and it has improved greatly in the last 5 years. It's clearer and easier to find stuff than before. Consider yourself lucky, you could be reliant on http://www.php.net/[^] for your documentation.

                                1 Reply Last reply
                                0
                                • L Lost User

                                  Albert Holguin wrote:

                                  I'd say programmers/engineers as a whole tend to make crappy documentation

                                  Can you point out the crappy piece for me? As far as I can see, it's structured in a predictable way. The texts are clear, the exceptions all named an explained. Even code-examples in each .NET language, for each version of the .NET language. As a user, I can add annotations, and there's a huge amount of walkthroughs and howto's that walk you through a task step by step. It is NOT a learning-book, that I agree. That's why we call it "documentation". Try creating an MSI-like installer for Ubuntu, and we'll talk again :)

                                  Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                                  K Offline
                                  K Offline
                                  ktm TechMan
                                  wrote on last edited by
                                  #19

                                  I know programmers hate documenting, but being a big company with lots of money, they can afford some good documentation guys/gals that keep them up to date based on the developer's incoherent documentation. In this ldap case why is there more documentation in the header file.

                                  L 1 Reply Last reply
                                  0
                                  • K ktm TechMan

                                    I know programmers hate documenting, but being a big company with lots of money, they can afford some good documentation guys/gals that keep them up to date based on the developer's incoherent documentation. In this ldap case why is there more documentation in the header file.

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #20

                                    ktm TechMan wrote:

                                    I know programmers hate documenting

                                    That's a nice generalization, but if you browse the articles here you get quite a different impression.

                                    ktm TechMan wrote:

                                    but being a big company with lots of money, they can afford some good documentation guys/gals that keep them up to date based on the developer's incoherent documentation.

                                    Being a big company, I am surprised by their level of consistency in the quality and structure of the documentation. I do not know what you "expect" to find there, but it's as good and complete a reference as the MSDOS 5.0 Reference Manual. Yes, there will be some abominations in there. You can't have that much documentation without some crap somewhere. That still does not make the entire library "crap". On the contrary, it is one of the better examples out there. Enjoy the DevExpress documentation, if you didn't find the Linux-proposal interesting.

                                    Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                                    1 Reply Last reply
                                    0
                                    • L Lost User

                                      Albert Holguin wrote:

                                      I'd say programmers/engineers as a whole tend to make crappy documentation

                                      Can you point out the crappy piece for me? As far as I can see, it's structured in a predictable way. The texts are clear, the exceptions all named an explained. Even code-examples in each .NET language, for each version of the .NET language. As a user, I can add annotations, and there's a huge amount of walkthroughs and howto's that walk you through a task step by step. It is NOT a learning-book, that I agree. That's why we call it "documentation". Try creating an MSI-like installer for Ubuntu, and we'll talk again :)

                                      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                                      J Offline
                                      J Offline
                                      jschell
                                      wrote on last edited by
                                      #21

                                      Eddy Vluggen wrote:

                                      Can you point out the crappy piece for me?

                                      If I have an open connection on a Socket then what does Dispose do - based on the documentation? Again per the documentation - what happens for BeginReceive if the socket is closed (a normal socket close) by the server before it is called? http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx[^] One can define behavior, protocol, etc for WCF via XML (other other ways too.) Where is the documentation that delinates in a useful way the difference in configuration for the server side versus client side set ups. There are differences by the way. For WCF net.tcp protocol what is the difference between a connection failure and a response failure? In terms of server processing those represent very different process failures. Where is the documentation for MS Access SQL? Not MS Access itself but rather the description of the SQL that one can use in creating appropriate constructs in it. I should note that I don't find the MS docs to be particularily bad. But they are not great either.

                                      1 Reply Last reply
                                      0
                                      • K ktm TechMan

                                        MSDN documentation is the worst documentation ever. Nothing is complete. The code examples are appalling, some are full programs with unrelated codes, some having to understand from with "...". And the coding convention is different every where. The most annoying part is completely wrong information, the other day I was looking at the LDAP API and MSDN said free the structure after use, which I did and it was crashing all the time, then I turned to the header file, it has more documentation than MSDN. And it said don't free this structure..WTF

                                        R Offline
                                        R Offline
                                        realJSOP
                                        wrote on last edited by
                                        #22

                                        google

                                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                        -----
                                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                        -----
                                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups