November 2007 - Posts

6
Comments

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: , ,
32
Comments

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...
9
Comments

Defensive programming and Design by Contract on a routine level by Fredrik N

“When quality is pursued, productivity follows” – K. Fujino, Vice President of NEC Cooperation’s C&C Software Development Group. People are talking about how to create tools (Software Factories) that will increase productivity. The view of productivity...
22
Comments

MVC - Expression Language and custom tags by Fredrik N

I have seen several developers that want and have no problem by using server-side code blocks in a View when they are working with the MVC pattern. But I think the server-side code block should be used only in some advanced and special occasions and instead...
Filed under: ,
0
Comments

ASP.NET MVC Framework - Ajax by Fredrik N

Take look at Nikhil's blog about how AJAX can be used with the ASP.Net MVC Framework: http://www.nikhilk.net/Ajax-MVC.aspx
Filed under: , ,
17
Comments

ASP.Net MVC Framework - Security by Fredrik N

Note: This post is based on an early version of the ASP.Net MVC Framework, not the final version, so changes my happen in the future. When using the ASP.Net MVC Framework it will do a URL routing to route an URL to a Controller, and the Controller should...
Filed under: ,
10
Comments

ASP.Net MVC Framework - Handling Exception by using an Attribute by Fredrik N

Note: This is based on the pre-CTP version of the ASP.Net MVC Framework and it is in an early stage. I got a comment on one my previous post “ ASP.Net MVC Framework - Exception Handling ” that the Rescue style MonoRail is a nice solution to handle Exception...
Filed under: ,
31
Comments

ASP.Net MVC Framework - Exception Handling by Fredrik N

Note: This post is based on an early preview version of the ASP.Net MVC Framework and much will happen until the next milestone. In this post I will show how we can handle errors that occur in a Controller’s Action method. The Controller base class has...
Filed under: ,
6
Comments

ASP.Net MVC Framework - Creating a IRouteHandler which will support Interceptors by Fredrik N

I really love how extensible the ASP.Net MVC Framework is, for example the normal pipeline looks like this: Request -> Route (IRouteHandler) –> ControlFactory (IControllerFactory) -> Controller (IController) -> ViewFactory (IViewFactory) ...
Filed under: ,
15
Comments

ASP.Net MVC Framework - Create your own IRouteHandler by Fredrik N

In my previous post I wrote about how we can create our own IControllerFactory for the ASP.Net MVC Framework; in this post I will show you how we can create our own IRouteHandler. The RouteHandler in this post will replace the IControllerFactory with...
Filed under: ,
More Posts Next page »