Monthly archive: February 26, 2012

MVC Custom Model Binders and CheckBoxList

Back to ASP.Net MVC! In this post, I am going to discuss about custom model binders and a real-time use of custom model binders in ASP.Net MVC. Before getting in to custom model binders, as the name suggests, there is also a default model binder. If you are interested in custom model binders for mvc, [...]

More ruby bits

It’s ruby time again! Just for fun (or may be it’s useful) I wanted to create a class that holds a list of similar objects. I wrote this class based on the following requirements: Should enable the user to specify the type the list will hold during initialization Should be able to hold an arbitrary [...]

C# Tips

Okay, I am back. Seems like there is a drought in my blog ! It’s been a while since I posted anything. So I figured that I could post some interesting tips that you may find useful! I have also decided that I will do this at times to fill out any gaps in my [...]

dotLess-first look

In this post I am going to discuss an interesting find through a training session I attended (html 5). During this session, the instructor mentioned about dotless. This is something I was looking for a while earlier, but was either unable to find it out or didn’t pay interest at that time for some reason. [...]

Type constraints and ICloneable – Cloning a List

In this post, I am going to discuss an interesting feature of c# – type constraints. Yes, it’s not new, but I always find type constraints to be interesting feature in C#. In case you are in this post, I am pretty sure you know the basics of C#. Given below is a simple class: [...]

ASP.Net MVC Extreme – How Stuff Works

You might have seen the following image, that discusses the control flow of a typical MVC request. In this post I would like to take a deep dive into every one of these blocks in “detail”, down to the last line I presume this post is never going to be complete as I may have [...]

Ruby bits

Okay, in this post I am going to discuss some interesting bits of ruby. To begin with, this is a very useful feature that you could utilize in ruby, in case you are writing a mini language based on certain rules for yourself. Let us assume you need to split string in to tokens. Yes this [...]

Some ruby love! – method_missing

Okay, time for some ruby love At this point, ruby gets the first place among my favorite dynamic languages! In this post I would like to discuss some interesting ruby facts I learned recently. First post is about method_missing. method_missing is a special method in ruby that can be used to handle calls to non-existent [...]

Custom Error Attributes (MVC 3)

In this post, I would like to discuss about custom error attributes in MVC 3. If you are a developer, you should be familiar with the “yellow screen of death (YSOD)”. Annotating your controller with [HandleError] would take care of this.This attribute would expect a view called Error in the Shared views folder. Note that there [...]