"Doubt is uncomfortable, certainty is ridiculous." - Voiltaire

Ahh, the forest from the trees.

My biggest weakness as a C# 3.0 developer is I’ve never programmed in 2.0.  Things like LINQ, Expression Trees, and Lambdas are things I grew up with.  I don’t know a world without them.

When I’m using these new language featues I’m constantly asking myself “How did they do that before?”, “Is there a better way I missed?”.

Today I think I made a good realization regarding expression trees.

Its the body that matters most.  The right side of the stake.  If you just compile an execute the body then why are you using them?

My soft and slow rule at this point is that besides using the IQueryable interface they are perfect for situations where the body matters and you can use that tree to perform AOP ( Aspect Oriented Programming ) techniques on the code without cluttering up the actual implementation.

I’m just glad I have a screwdriver in my toolbox now and not just a hammer.


 
 
 

Leave a Reply