Complete Guide to Lazy Loading – Lazy

In creating performance-centric applications one has to be very cautious about how and when objects are created and destroyed. An early creation of an object is equally dangerous as is delayed clean-up. When an object is created before it is actually required, the object finds itself residing in a memory stack at much distant location from the place it is ...

Read More »

Out of Duct Tape, Try Some Cheap Code

Before I get this little rant started I just want to make a quick apology. I started this rant on twitter regarding this blog post before I later remembered one of my colleagues had actually sent it out to me and then thinking that I should probably tone down the rhetoric. So let it be known that I’m an opinionated ...

Read More »

Performance: Caching per request

A couple of years ago I wrote a post describing an approach my then colleague Christian Blunden used to help improve the performance of an application where you try to do expensive things less or find another way to do them. On the application I’m currently working on we load reference data from an Oracle database into memory based on ...

Read More »

Repositories, Unit Of Work and ASP.NET MVC

There are a lot of posts discussing repository implementations, unit of work and ASP.NET MVC. This post is an attempt to give you and answer which addresses all three issues. Repositories Do NOT create generic repositories. They look fine when you look at them. But as the application grow you’ll notice that you have to do some workarounds in them ...

Read More »

Structuring your Unit Tests, why?

I am a strong believer in automated unit tests. And I read this post by Phil Haack with part amusement and part wonder. RavenDB currently has close to 1,400 tests in it. We routinely ask for failing tests from users and fix bugs by writing tests to verify fixes. But structuring them in terms of source code? That seems to ...

Read More »

Don’t just Test, be a Tester

In the team I currently work with, we came to the conclusion, that the software contains to many bugs when we think it is finished. Since we don’t have a dedicated tester on the team (I know that is a mistake) we decide to invent the role of “Tester of the Week”. Every week one person would get the title ...

Read More »

Screening C# Candidates: Let’s Play 20 Questions!

Over the past year I was involved in the process of interviewing candidates for both mid and senior level developer positions. We would bring them in for a face-to-face interview, sometimes with multiple interviewers, only to find out they were unable to answer the most basic technical questions concerning C# and .NET. I’m of the persuasion that every .NET developer ...

Read More »

List executed code using PostSharp

This post was created to answer a question by Laimonas Simutis on the ALT.NET mailing list – how to list all executed code… There where many good ideas and your truly suggested using PostSharp – mainly because this is one of the examples I use in my AOP and PostSharp presentation. And so without further ado here is my solution ...

Read More »

Unicode in Windows (Delphi, .NET, APIs, etc)

With the the growing integration between systems, and the mismatch between those that support Unicode and that do not, I find that a lot of organisations lack basic Unicode knowledge. So lets put down a few things, that helps as a primer and gets some confusion out of the way. Please read the article on Unicode by Joel on Software, ...

Read More »

Introduction to bddify

If you are new to BDD you may want to read BDD to the rescue first. This is an introduction and a start of a series about bddify, a powerful BDD framework for .Net, called ‘Bddify In Action’: Using bddify Introducing bddify: which is this post Using Method Name Conventions Writing stories Using Executable Attributes Using Fluent API Input parameters ...

Read More »