Monthly Archives: June 2010
Introducing a validation library
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
TodoApp – part 4: Welcome softcore!
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
TodoApp – Part 3: Fix that data source.
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
Extension methods to simplify database handling.
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).
TodoApp – Part 2: Single responsibility is what we need.
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
TodoApp – part 1: From shitcore to hardcore
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
Everyone know what it is, but no one have used it?
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
My name is More, Docu More!
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
Code smells
Found the following article when writing my last post. Read it, you don’t want your code to smell. Do you?
DRY KISS, SR!
Explains what “DRY KISS, SR” is all about. Continue reading