Today Microsoft released Visual Studio 2008 and .NET 3.5. My personal favourites are the new language features for C#; automatic properties, extension methods, lambda expressions and anonymous types.
Microsoft Promoting Functional Programming
Microsoft is promoting F# to be a fully supported programming language in Visual Studio.
F# offers developers many valuable and compelling features without sacrificing much runtime efficiency. F# supports type inference, pattern matching, high-order functions, and currying. F# also supports interactive execution, which means that F# programs can be run like scripts or inputted in an interactive top-level environment similar to the Python shell or Ruby’s IRB. F# also has full access to the .NET APIs and components written in other .NET languages.
Its a good day to be a .NET developer.
Convert string into enum
A handy tip I just discovered, if you want to convert a String into an Enum type in C#, you can call:
object Enum.Parse(System.Type enumType, string value, bool ignoreCase);
You can then cast this into the required type, and it will save you from creating huge switch statements instead.
Fake
The following function is not a great way to test for fake names.
if (name.Has("fake"))
{
return false;
}
Where are the menu bars in Vista?
Shell Blog has the lowdown on how to incorporate new Vista UI designs into your own applications, with the slow death of the menu bar, and the rise of the command module.
One of the first things people notice when they start using Vista is the absence of menu bars. Explorer, photo gallery, media player, and IE all don’t show menus by default and just use the so-called “command module.â€? What is up with that? Do we hate menu bars? And more importantly — what is the guidance that third-party developers are supposed to follow?
Ruby for .NET
RubyCLR is ruby for the .NET framework. You can now create full .NET applications with ruby.
I think it’ll take a lot for me to give up on C# with .NET, but you just have to love ruby.
Music makes good developers
Dave Thomas gives an interesting answer to what he thinks makes a good programmer:
I have seen a strong correlation between people who have some music in their background and programming skills. I have no idea why, but I suspect that some of the areas of the brain that make someone musical also make them good at software development. #
I am an XML disciple
Everyone knows about HTML, it’s possibly the most popular language on the internet. Its utterly ubiquitous in its domination of web based documents, for some very good reasons too. However, if you haven’t heard already, I’m afraid to inform you that it’s dead. And you know what? I’m glad it is! HTML was flawed from its beginnings in CERN where it was still just a twinkle in Tim Berners-Lee’s eyes.
Bring back the creativity
Recently, I’ve been seeing that a lot of blogs I read (notably, Binary Bonsai and Ordered List), have start to use their own radical designs, that break away from tradition.