Resharped

March 31, 2007

I am rather ashamed to admit that up until now I've never really tried to use Resharper, the very well known Visual Studio add-in. Today I decided to give Resharper 2.5 a try and was really blown away. Comparing Visual Studio 2005 without Resharper to Visual Studio 2005 with Resharper, is like comparing Turbo Pascal to, well, Visual Studio 2005. There's really no match here. It starts with the little things, like how it always adds a matching brace to any brace you use ({,[,(). It makes you think why the hell isn't this already built in in Visual...
no comments

The trouble with Coverage of GAC Installed Assemblies

March 24, 2007

My team is starting to get into the whole unit-testing approach, and the first thing we're doing is adding unit-tests for the infrastructure assemblies. So I've written up some unit-tests, which I ran using NUnit and the wonderful TestDriven.NET Visual Studio tool, and the next thing I did was trying to test the coverage for said assembly, using NCover (again, by using TestDriven.NET's test with... coverage option). When the results were opened in NCoverExplorer, I was very surprised to get no coverage results for the assembly I'm trying to test (the infrastructure one), I only got results for...
tags: ,
no comments

My First C# 3.0 Program

March 23, 2007

I've finally decided to download the new "Orcas" CTP of Visual Studio, which includes support for the all new C# 3.0. Up until now I only read about it, so I thought it was about time I tried it myself. And it's awesome. So, here's my "hello world" program. public void MyFirstProgram(Func<string,string> doSomethingWithString) { var result = doSomethingWithString("dlroW olleH"); Console.WriteLine(result); ...
no comments

Configuration Weirdness

March 10, 2007

Lately I've encountered a rather weird behavior when using .NET 2.0's configuration model. Let's say I have the following custom configuration section: public class TestConfigSection: ConfigurationSection { public TestConfigSection() { } public TestConfigSection(string testAttrib) { TestAttrib = testAttrib; ...
no comments

FizBuzzing

March 2, 2007

A huge reaction followed Jeff Atwood's Why Can't Programmers.. Program? post. The post is about how most of the programming jobs applicants can't even solve a simple "FizzBuzz" question which requires you to print all numbers between 1 and 100, while replacing multiples of 3 with "Fizz", multiples of 5 with "Buzz", and multiples of both with "FizzBuzz". Of course, this problem was really not the point of the post, but the readers just couldn't resist writing solutions for it in the comments section. In lots of different ways and different languages (including assembly, SQL and anything else you...
no comments