Recent Posts

Handling Sandwich Code in C#

3 minute read

What is "Sandwich Code"? I found it in Ruby Koans. Often, you have to do something at the beginning and at the end, even though your main lock is in the midd...

My favourite jQuery expressions

less than 1 minute read

This is purely for me and to remind myself of the frequently used jQuery expressions. Forgetfulness is a curse as well as a bliss! Make the first option of ...

mongodb and norm

less than 1 minute read

People use ORM like Entity Framework and NHibernate a lot and I am one of them. When I use ORM, often I ma haunted by two inner thoughts. One is "This can be...

My favourite helpers for ASP.NET MVC

1 minute read

As you use ASP.NET MVC on and on, you start building and using handy html helpers. Rob Conery posted a few of his helpers on his blog. You can find some more...

Testing private method in unit testing

1 minute read

Ideally, it is not recommended to test private methods, as complex internals should be kept hidden and only interface be tested. Well, in real world, sometim...