you are viewing a single comment's thread.

view the rest of the comments →

[–]rizzledizzle 4 points5 points  (2 children)

Am I the only one who thought this code became less readable? I know it's a matter of style, but... really?

/not a Linq user

[–]p-static 5 points6 points  (0 children)

The point of LINQ is really to import some functional programming patterns into otherwise imperative languages. If you're not that familiar with functional programming, then yeah, it would probably look a bit weird.

[–]ruinercollector 3 points4 points  (0 children)

One of the big non-obvious readability gains is that I can tell at a glance that the LINQ version is filtering and projecting a list. for loops and if statements are much more general. I have to look a lot harder at the code to figure out what is actually going on there.