Skip navigation

You know what’s annoying? Powerful API’s like .NET.

You know what’s even more annoying? When MSDN SUCKS~!!!!!

Formatting numbers in C#

Holy crap. I’ve had to rail on this again and again and every time I do.. I ask myself WTF is MSFT doing? I mean, they want people to use their API’s. Why don’t they get a crack team to document this stuff?

HOW IS this acceptable??? Don’t they have a QA team? I mean yes there’s a lot to document, but there’s also a lot of code to write to get the thing to work. If you’re going to get one thing right, you may as well get the other, otherwise all your effort probably is wasted because the vast majority of people (average developer I suppose, from what I see on these usenet and discussion board posts) won’t be able to use these nifty/neato functions that you’ve worked in here and they’ll be stuck creating crummy workarounds because no one uses these functions so nobody knows about them unless they really look..

    int x = 5;
    double y = 5;
    int z = 9492;
    string a = String.Format( "{0:00} {1:00} {2:00000}", x,y,z );
    Console.WriteLine( a );

    // outputs: 05 05 09492
    // 0:00 says:  The first 0 is which arg to match up with (in this case, x)
    // the :00 after that first 0 says "it must be 2 digits long, and if its not, pad it
    // with extra 0's.

msdn’s docs really blow.



  1. Your link for “How is this acceptable” just points to this same blogpost. Somewhat ironic.

    In the past year since you wrote this rant, have you used the Community Content functionality of MSDN to add your additional insight to the topic?

  2. VERY ironic. I’m fixing that now.

    The Community Content feature is great.

    But I’m still of the opinion that MSFT should publish better documentation.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: