Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements


Steve  Richter SteveRichter
  • Steve Ballmer - Worst CEO (Forbes)

    , ManipUni wrote

     -  after dumping Zune   

    Right decision. Zune was a money-pit. It was never going to succeed. Looking back that is only more clear with the strong move to smart-phone-as-the-MP3 player-killer.   

    why did it have to be a moneypit? There must be a market for a media device that is not a phone. One that seamlessly integrates with PCs and other media devices, which is not on all the time so it can hold a charge for an extended period of time.


  • Steve Ballmer - Worst CEO (Forbes)

    , ManipUni wrote

     -  dumping Windows CE   

    He didn't "dump CE" he replaced an uncompetitive product (Windows Mobile 6.xx) with a highly competitive one (Windows Phone 7).   

    Why was windows mobile uncompetitive to begin with? Microsoft had an OS marketing/approach that worked great for PCs. MS-DOS worked on all PCs. If they had done the same with phones and tablets I think they would have had great success.

  • A cool Unix video from the 70's

    Maybe the emphasis on pipelining made Unix too much of a batch processing system and did not work well with GUI apps.  Do Linux apps have message loops?

  • A cool Unix video from the 70's

    So why was Unix not chosen by Microsoft or IBM as the basis of the PC? Were there any key differences between Unix and DOS?   Maybe DOS being more interrupt focused, which enabled it to better work with the Intel CPU?


  • Leaving C9 for a while

    , evildictaitor wrote

    C9 seems to have become very negative in the past few months, and so I'm going to be taking my leave for a while.

    I think you are blaming the messengers. Microsoft software technology is first rate. But the people, person, whoever who run the company are really bad. Simply from a business, profit and growing/maintaining marketshare perspective. Apple, Google, Facebook dominate in markets that MSFT has failed in. Oracle and IBM are thriving. Consider the depth of incompetence or arrogance or lack of iimagination needed to fail in the search, handheld device, social media, business software product spaces. In Windows 8 there is more than a slight chance of catastrophe, a splintering of the desktop space.  Considering the problems and failings, this forum is a very good place. Which I attribute to the excellence of Microsoft software technology.


  • C++ needs extension methods

    , Charles wrote

    @ryanb: And Herb told me that there is not much momentum behind extension methods in the ISO committee...


    is there any talk within Microsoft to have its own native programming language? I guess, kind of like Apple has Objective-C.  A C like language with built in behavior that makes sure handles are closed and memory deallocated. Can call managed code, WinRT and COM.  Easily handle ANSI and Unicode strings. Maybe I am describing C++, but without all the stuff that makes the language hard for me to understand.


  • C++ needs extension methods

    , BitFlipper wrote

    I still think the way extensions in C# was implemented is wrong. It looks and feels like they could not really come up with an ideal syntax and ended up with the awkward result we have today. My suggestion is to do it this way:

    public static extension class string
        /// <summary>
        /// Shows how a method is implemented
        /// </summary>
        public int GetWordCount()
             var wordCount = 0;
             // Code that counts words
             return wordCount;


    keep in mind that extension methods apply to all types, like enums and interfaces.

    Also, I like that an extension method can be called on a this value that is null.

    For a lot of the classes I create I code two extension methods. One, named "ToXElement" returns the object in XElement form. The 2nd, named "[ClassName]OrDefault" is an extension of XElement and returns the object instance from an XElement.  Being able to test for null in an extension method is great when going from XElement to object because you never know if the XDocument contains your XElement or not. And these two methods belong in the same source file with the class they are extending, despite one apply to XElement and the other to the actual class.


      public static class PresentationSpaceExt  {    public static XElement ToXElement(this PresentationSpace Space, XName Name)    {      if (Space == null)        return new XElement(Name, null);      else      {        XElement xe = new XElement(Name,             new XElement("Fields",               from c in Space.Fields               select c.ToXElement("Field")),               Space.Dim.ToXElement("Dim"),               Space.CursorLocation.ToXElement("CursorLocation")          );        return xe;      }    }    public static PresentationSpace PresentationSpaceOrDefault(      this XElement Elem, XNamespace ns, PresentationSpace Default = null)    {      if (Elem == null)        return Default;      else      {        var dim = Elem.Element("Dim").PresentationSpaceDimOrDefault(ns, null);        var loc = Elem.Element("CursorLocation").DisplayLocationOrDefault(ns, null);        var flds =        from sam in Elem.Element(ns + "Fields")          .Elements(ns + "Field")          select sam.PresentationSpaceFieldOrDefault(ns, null) ;        var ps = new PresentationSpace(loc, dim, flds);        return ps;      }    }  }




  • C++ needs extension methods

    , evildictaitor wrote


    Internet Explorer tried that, and they get endless criticism for doing so.

    Users can run code compiled by a standards non compliant compiler. They can't use a web site that does not conform to their browser.


  • C++ needs extension methods

    , evildictaitor wrote

    Raymond Chen puts it better than I can (http://blogs.msdn.com/b/oldnewthing/archive/2012/01/13/10256146.aspx):

    I always find it interesting when people say "I wish that Microsoft would stop following standards,"

    no, I want Microsoft to adhere to standards. But I also want them to provide extensions. in my case, the code I use comes from all platforms. The code I write only needs to run on Windows.

    Edit:  I want Microsoft to make it easier for me to write and organize my code.  As it is, using C++ is more wrestling than coding.





  • C++ needs extension methods

    , Ion Todirel wrote

    Extension methods is one of my least favorite features in C#, they are a hack to inject functionality into something that doesn't have it. Mixins can be a better choice sometimes, and you can do that in C++.

    a mixin is created by creating a new class that is based on the class being extended?


    I have a class library that is returning an instance of a class. How to apply the mixin pattern to an object that already exists?