Monthly Archives: June 2010
I’ve made a validation library which is focusing on model validation. Why another one when there are a few good ones like EntLib Validation ApplicationBlock and Data Annotations? Three reasons: 1. It’s extendable You can easily extend the library in … Continue reading
The application as getting a bit more well designed when it comes to DRY KISS, SR. But before we continue, we have a small problem in the last iteration. We didn’t find a good way to get typed data back … Continue reading
Let’s continue with the refactoring. What are the main window really doing?? Well. Displaying todo list Loading and saving stuff to the database That’s one thing too much. We’ll implement a Repository. imho, Fowler is wrong in his explanation. The … Continue reading
Two extension methods used to simplify database handling. Usage The following code: becomes Best of all, the code becomes driver independent. (You can switch between SQLiteConnection, SqlClientConnection or whatever without any code modifications).
In our journey towards hardcore we need to refactor the shitcore into a bit more softcore =) I’m not going to show all source code in this blog entry. You can look at the code here. It will take some … Continue reading
The easiest way to learn how to improve ones coding is by examples. I’ve therefore created an example application which is really crappy written application. It’s a todo app where you can enter your todos (but not delete them ;)). The … Continue reading
I must confess that I’ve never used the northwind database, despite that I’ve been developing using Visual Studio for more than 10 years. I’m going to try Entity Framework 4 due to a request from a colleague of mine. The tutorial that … Continue reading
Are you one of those people that thinks that code is self explainable? Still thinking that when you go back and try to fix code that you did a year ago? Yes? Good for you. Documentation is a tool that … Continue reading
Found the following article when writing my last post. Read it, you don’t want your code to smell. Do you?