Recent Posts

8
Comments

Isn't it boring to write crosscutting concerns? by Fredrik N

To make sure we have clean code and make it easy for us to maintain, we should try to be lazy and reuse code as much as possible, we should also avoid redundant code. But when it comes to crosscutting concerns, we have to be redundant, or? What code is...
Filed under: ,
6
Comments

Returning IQueryable<T> by Fredrik N

Since LINQ was added to the .Net Community as a new wonderful new player, more and more solutions I have seen returns the IQueryable<T> from the Data Access Layer. One reason is to easy create different kind of queries in an easy way and execute...
Filed under:
3
Comments

Controllers in the MVC pattern is not a replacement for Business logic layer by Fredrik N

I have seen several demos and examples on presentations where the Controllers are more or less used as a Business logic layer and based on the definition of the MVC Pattern, that is not the correct way of using the Controller. The Controller in the MVC...
11
Comments

What role does the User Control has in the ASP.Net MVC? by Fredrik N

Several developers have asked me about the use of User Controls within the ASP.Net MVC, so I decided to write down what I think about it. A User Control is a piece of the User Interface which is sometimes created to be reused on several of Web Forms,...
Filed under: ,
16
Comments

What to do if computers didn't exists? by Fredrik N

If there wasn't any computers in the world, what should I do right now? It's not an easy question to answer. When I was about 6 years old, I was dreaming about being a farmer, have three kids at the age of 20. At the age of 20, I was working with a Business...
21
Comments

Why doesn't some of you write unit test? by Fredrik N

I have educated over 1000 developers the last 1 1/2 year and about 5% of them raise their hands when I ask them if they writes test, like unit test or if they use Test Driven Development (TDD). 5%! That is not much. When I asked them why they didn't write...
Filed under: , ,
8
Comments

Using Web Services in a 3-tier architecture by Fredrik N

During the age of the Windows DNA, most of us developers used COM/COM+ and a 3-tier architecture. Where we separate concerns by placing the views to present data into a layer called PL (Presentation Layer), we add all business logic into one single layer...
Filed under: ,
4
Comments

Don't return List<T> from a public member! by Fredrik N

A friend of mine had a question about IList<T> and List<T>. He had noticed that some developers are returning IList<T> from methods, for example: public IList<Customer> GetCustomers() { //... return customers; } So he wonder why...
10
Comments

Bring LINQ to SQL down by Fredrik N

There is a discussion on the net about LINQ to SQL and if it should be removed in the future. My collogue and friend Patrik Löwendahl wrote a post about what he think, you can read about it here . I don't care if LINQ to SQL will be removed, honestly...
2
Comments

Blog from PDC 2008 by Fredrik N

We are some Swedish developer blogging live from PDC 2008 in Los Angeles on http://blog.pellesoft.se (All posts are written in Swedish).
More Posts Next page »