Entries:
Comments:
Posts:

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

Pop Catalin

Pop Catalin Pop Catalin Sever

Niner since 2006

Interested in all things other developers are hardly interested in.
  • Visual Studio Toolbox: Simplification of the Visual Studio 11 Development Environment

    Colors, REMOVE CAPS, etc ... I think you heard all the complaints by now over and over.
    I'm only curious what you will do with this feedback.

  • TechDays 2010 Keynote by Anders Hejlsberg: Trends and future directions in programming languages

    Anders is amazing as always. I'm glad he's in charge of our future languages development. The way he mixes practicality with pragmatism and evolution almost feels like magic.

     

  • C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals, Chapter 1 of 13

    Functional programing in general is full of beautifull concepts, unfortunatelly a little shy on engineering concepts that make could make it more usefull than other programming models. F# tries to fix this, and in my opinion has managed to do it to a greater extent than other functional programming languages. But still I feel there's something missing that will allow functional languages to really take off, I don't know exacly what, but "functional OO" languages seem to be better than pure functional languages.

     

     

     

     

     

  • Ian Carmichael: The History and Future of the CLR

    If there's one thing I want to see in the CLR, it's SIMD. If mono can do it, I'm sure Microsoft can too Wink

    That's my greatest wish ... for now.

     

  • Erik Meijer: Happy Birthday Channel 9!

    Voted!
  • XAML Guidelines, Part 2

    Wow, great video, can't wait for more Smiley
  • Microsoft .NET Framework: Overview and Applications for Babies

    Excellent!
  • Functional ADO.NET

    Instead of: 

              reader =>
              {
                   while (reader.Read())
                  {
                      Console.WriteLine("{0}\t{1}\t{2}",
                      reader.GetInt32(0),
                      reader.GetString(1),
                      reader.GetString(2));
                  }
              });

    I sugest to abstract away the reader usage and put it inside the DataBase.ExecuteReader(...) method and replace the last parameter Action<IDataReader> action with Action<IDataRecord> and iterate inside the method, like so :
    replace :
    ...
    using (IDataReader reader = cmd.ExecuteReader())
    {
           action(reader);
    }
    ...

    with :

    using (IDataReader reader = cmd.ExecuteReader())
    {
           while (reader.Read()) {
                action(reader);
          }
    }

    so:

              reader =>
              {
                   while (reader.Read())
                  {
                      Console.WriteLine("{0}\t{1}\t{2}",
                      reader.GetInt32(0),
                      reader.GetString(1),
                      reader.GetString(2));
                  }
              });

    becomes:

              record =>
              {
                      Console.WriteLine("{0}\t{1}\t{2}",
                      record .GetInt32(0),
                      record .GetString(1),
                      record .GetString(2));
              });


    ... and all loops are gone inside user code. (perfect candidate for thread level parallelism now Smiley ).

    Other than that nice vid and good way of using the old ado.net.

  • HanselMinutes on 9 - #1 -

    Awsome video! More please!Smiley