Pure beauty

Look at this javascript code: '#'+Math.floor(Math.random()*16777215).toString(16); It prints a random hex color in just one line. I love when I find this kind of solutions. Smart, effective…and if you think a little more about it, even simple. Thank you, Raymond.

1 minute read

Knowledge is power.

Today I finally got my brand new copy of Professional ASP.NET MVC 4 😀 I’ve been following Phil Haack‘s blog for a long time and I really like the guy, so this time I decided to give his group a chance and take the book … Now I guess I’m going...

1 minute read

New Website

Simply stated, Worpress is great.

1 minute read

Extracting property name at compile time

Just an extract from this article. It’s something I always find VERY useful (in situations where speed is not one of our concerns, of course) protected string ExtractPropertyName<T>(Expression<Func<T>> propertyExpression) {     if (propertyExpression == null) {         throw new ArgumentNullException("propertyExpression");     }      ...

2 minute read