News for hackers. Stuff that matters.

kodefuguru

Re:LINQ is better than foreach on Tuesday May 11, 2010 @02:08PM (#1338723)
I changed it to run with one million names and ran with the optimized foreach. I only did one pass.

foreach 00:00:01.7348710 linq 00:00:01.8607973

Re:LINQ is better than foreach on Tuesday May 11, 2010 @02:01PM (#1338705)
Everyone get's that wrong, including Microsoft's documentation ;). It's a good optimization though, in spite of the LSP violation.
Re:LINQ is better than foreach on Tuesday May 11, 2010 @11:24AM (#1338146)
IQueryable's get converted to expression trees which then get converted to sql. It's more of a "translated" to sql rather than a "compiled" to sql. The power of IQueryable is that the expression trees can be converted to so many different kinds of expressions, and you can write your own.

IEnumerable's extensions are mostly iterators over sequences.

Re:Rex - Regular Expression Exploration on Tuesday May 11, 2010 @11:17AM (#1338111)
I've played around with this. You can reference the executable and play around with it.

http://www.kodefuguru.com/post/2010/05/03/Generate-Matches-f...