January 2010 Blog Posts

TekPub's Mastering LINQ Challenge

I’m always up for a challenge. I still have to watch the Mastering LINQ videos up on TekPub (which is amazing by the way, I encourage you to check it out!), but someone (hi Tuna!) tweeted about a small challenge related to the series. Basically, the challenge is to use a chained LINQ statement to create a prime number filter, without using any custom functions. Without further delay, here’s my solution: var primes = Enumerable.Range(1, 30) .Where(x => x > 1) .Where(x => x%2 != 0 && x != 2) ...

posted @ Saturday, January 09, 2010 12:09 AM

LessCSS, the .NET edition

I’ve been hesitant on publishing this, because I’m never happy with the code I write. As it happens, I have the same problem with writing articles for my blog as well (some people tell me I simply try too hard…). Anyway, without further delay, I present to you my latest pet project: Less.NET! What is Less.NET? Less.NET is a C# port of the LessCSS ruby gem. I have been using LessCSS in a few test projects, and I am really happy with the way it structures my CSS files (see http://www.lesscss.org for more info). Why port...

posted @ Friday, January 08, 2010 11:26 PM