Fredrik Normén
ASP.NET, AJAX, Silverlight, RIA, Architecture, Clean Code
Sign in
|
Join
Home
About
RSS
Atom
Comments RSS
Search
Tags
.Net
.NET 4.0
.NET RIA Services
AOP
Architect
ASP.Net
ASP.NET AJAX
ASP.NET MVC
ASPInsiders
AXAJ
Build
C#
C# EF4.0 Repository
C# nHibernate Repository aspmvc
CDN
Code
Defensive Programming
Desigm
Design
Design By Contract
Entitis
Entity Framework
ForkCan
HTML
IE8
Javascript
MEF
Microsoft
Multiple return values
MVC Framework
MVC3.0
MVVM
Patterns
Razor
Resources
REST Service
RIA
RIA Services
Session
Silverlight
Silverlight 3.0
Silverlight 4
Styles
test
Unit test
Unity
VB.Net
ViewModel
Visual Studio 2010
VS 2010
VS2010
WCF Ria Services
WebMatrix ASP.NET
Windows 8
Write code
Sponsors
advertise here
Navigation
Home
Blogs
Archives
September 2011 (1)
September 2010 (2)
August 2010 (2)
July 2010 (7)
June 2010 (1)
May 2010 (3)
April 2010 (1)
March 2010 (2)
February 2010 (2)
January 2010 (12)
December 2009 (8)
November 2009 (18)
October 2009 (4)
September 2009 (6)
August 2009 (4)
April 2009 (3)
March 2009 (9)
February 2009 (4)
January 2009 (3)
December 2008 (3)
November 2008 (6)
October 2008 (4)
September 2008 (1)
August 2008 (6)
May 2008 (5)
April 2008 (9)
March 2008 (3)
February 2008 (1)
January 2008 (1)
November 2007 (14)
About
Follow me on twitter
Squeed
Blogroll
ScottGu's Blog
Johan Lindfors
Nikhil Kothari
Johan Normén
My old blog, for archive purpose
Roger Alsing
Robert Folkesson
Tips
Browse by Tags
All Tags
»
C#
(
RSS
)
.Net
AOP
Code
Defensive Programming
Desigm
Design
Design By Contract
Multiple return values
Patterns
VB.Net
VS2010
Write code
Design by Contract with Microsoft .Net Code Contract
by
Fredrik N
I have done some talks on different events and summits about Defensive Programming and Design by Contract, last time was at Cornerstone’s Developer Summit 2010. Next time will be at SweNug (Sweden .Net User Group). I decided to write a blog post about...
Filed under:
Design By Contract
,
Defensive Programming
,
C#
,
Write code
,
Code
,
VS2010
Use Extension method to write cleaner code
by
Fredrik N
This blog post will show you step by step to refactoring some code to be more readable (at least what I think). Patrik Löwnedahl gave me some of the ideas when we where talking about making code much cleaner. The following is an simple application that...
Filed under:
Design By Contract
,
C#
,
Write code
,
Design
.NET 4.0 is so Lazy
by
Fredrik N
With .NET 4.0 there is a new class added to the System namespace called Lazy<T>. This class is what the name says, lazy. Here is an example where Lazy is used: var lazy = new Lazy<IList<OrderRow>>( () => { var rows = //get order rows;...
Filed under:
C#
,
.Net
,
VS2010
Is it important to write good code?
by
Fredrik N
The last three weeks I have visit several companies and talked about writing good code. It's amazing to see how different developer thinks about writing good code. Here are some comments when I asked if it's important to write good code: - I don't care...
Filed under:
C#
,
Write code
,
Code
Region is an excuse for hiding large files
by
Fredrik N
Often when I take a look at sample code there are a lot of regions. I need to open them all the time, it really start to make me crazy. Why does people even use Region in their code, what's the point of hiding code? I think it's only an excuse to hide...
Filed under:
C#
,
Code
,
VB.Net
Map Objects to one Object
by
Fredrik N
In my previous post I wrote about how we could use Dynamic Compilation for mapping object to object in a configuration file, mosly for fun to simply try something different. I spend a few minutes to see if I could do something more with it. It ended up...
Filed under:
C#
,
Design
The configurable application, no need for recompilation and new deployment!
by
Fredrik N
The following I will write about is something I have used in some projects to see if it gives me any value, I haven't seen any evolutionary results yet, but maybe it's because I often move along to other projects when the previous one is completed ;)...
Filed under:
C#
,
Write code
,
Desigm
,
Patterns
Remove code smell with AOP
by
Fredrik N
During the last years you have probably heard about Aspect Oriented Programming (AOP). Different people like or don’t like AOP. I’m one of them who like AOP. As you may now VB.Net and C# are object orientated languages and with object oriented programming...
Filed under:
C#
,
AOP
,
.Net
Multiple return values, I want this in C#
by
Fredrik N
I so badly want to have support for multiple return values in C# instead of using out parameters. Note: The following is only an example, we can use a struct or an object to create a data structure which will hold the value, but I only use this code for...
Filed under:
Multiple return values
,
C#
More Posts