Pop Catalin
Interested in all things other developers are hardly interested in.
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Visual Studio Toolbox: Simplification of the Visual Studio 11 Development Environment
Mar 14, 2012 at 1:46 PMColors, 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
Apr 02, 2010 at 1:23 PMAnders 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
Oct 02, 2009 at 6:49 AMFunctional 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
Jun 10, 2009 at 4:47 PMIf 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
That's my greatest wish ... for now.
Erik Meijer: Happy Birthday Channel 9!
Apr 08, 2009 at 10:32 AMXAML Guidelines, Part 2
Jan 07, 2009 at 6:38 AMMicrosoft .NET Framework: Overview and Applications for Babies
Nov 04, 2008 at 12:25 PMFunctional ADO.NET
Sep 03, 2007 at 1:51 AMInstead 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
Other than that nice vid and good way of using the old ado.net.
HanselMinutes on 9 - #1 -
Mar 28, 2007 at 2:34 PM