LINQ – Learn by example

Roger Jennings writes about issues with finding examples of complex LINQ to XML queries. Boy have I been there and done that. One of the problems with learning LINQ is that you have two options

1) learn LINQ very deeply so you can do what you need

or

2) learn by example

With LINQ, I tend to start with a need, do what I can until I hit a wall, then look for examples that will help me and use them to learn even more. But it means that there needs to be a LOT of examples.

I have often likened learning LINQ as well as learning Entity SQL to learning T-SQL. Learning T-SQL has, for me, been an evolution which has occurred over some ten years. I still have to look up the Cast & Convert topic 99% of the time in the docs whenever I need to convert a datetime to a desired char format.

Even if there were 1001 examples, I know that there will always be something I want to do that I can’t find an example for and will have to rely on gaining a better understanding of LINQ in order to accomplish it.

  Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!  

One thought on “LINQ – Learn by example

  1. Hi Julie,Good luck with your explorations of LINQ. As a self-taught developer, you might find the following free training sample from InnerWorkings interesting and/or helpful to you. We’ve teamed up with Microsoft to offer 3 hours of hands-on learning for .NET developers new to LINQ, the .NET 3.5 Framework, and VS 2008. Our learning model is 100% practice based with a focus on solving real coding problems within the IDE:http://www.innerworkings.com/promotions/75d4bd51-4bf1-4d8a-8c47-73135e44837a/visual-studio-2008-promotionIt would be great to get your feedback on the product.Thanks,Brian FinnertyInnerWorkings

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.