says: "mastering the skills to maximize the tools"

Archive for March, 2008

C# Generic Constraints

Friday, March 28th, 2008 Posted in Coder's Code | No Comments »

Generic is a new wonder in .NET with the flexiblity it introduces to coders. But when you wish to explore further, you might face the limitation of only able to work with Object capabilities. This is because generic doesn't know ...

Better comparison with enumeration

Tuesday, March 11th, 2008 Posted in Coder's Code | No Comments »

Suppose you have an enum list and a variable which value comes from external source. What do you usually do to compare against the enum list? If (MyValue == "3") { //3 means ok, do some stuff } What if one day ...

Have you made your environment pledge?

Monday, March 3rd, 2008 Posted in Psycho's Note | No Comments »

Facts, in case you wonder : 1. It takes less than half a second to turn off the water tap while brushing your teeth, and that in turn saves 14,600 litres of water a year! 2. It requires less than 0.1% of ...