James Michael Hare

...hare-brained ideas from the realm of software development...
posts - 136 , comments - 1095 , trackbacks - 0

My Links

News

Welcome to my blog! I'm a Sr. Software Development Engineer in Seattle, WA. I've been doing C++/C#/Java development for over 18 years, but have definitely learned that there is always more to learn!

All thoughts and opinions expressed in my blog and my comments are my own and do not represent the thoughts of my employer.

Blogs I Read

MCC Logo MVP Logo

Follow BlkRabbitCoder on Twitter

Tag Cloud

Archives

Post Categories

C#/.NET Fundamentals: Of Lambdas and LINQ

This is a quick presentation I threw together for a group of developers who requested a quick primer on using lambda expressions and the more common LINQ extension methods.  It seemed like a good general knowledge presentation so I decided to upload it to slideshare and reference it here as well.

This is not meant to be a comprehensive discussion of everything that lambda expressions and LINQ have to offer, but is just sort of a very basic introduction to help those less familiar with reading and using them in code get used to them.  Lambda expressions and LINQ have a very great ability to make code more concise, and thus easier to write, test, and maintain. 

That said, their syntax and behaviors do take some getting used to if your shop hasn’t used them widely before.  Once they become part of your .NET vocabulary, though, believe me you will never want to do without them again!

Feel free to critique and/or pass it on!

Technorati Tags: , , ,
 

 

 Technorati Tags: , , ,

 

Print | posted on Tuesday, May 17, 2011 12:27 PM | Filed Under [ My Blog C# Software .NET Fundamentals ]

Feedback

Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

Thanks for the slides, I finally get it.
5/18/2011 8:17 AM | Stuart
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

Excellent summary.
You have a typo at page 26.
5/18/2011 11:27 AM | aykut
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

Thank you!
5/19/2011 7:55 AM | Lieven
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

I've found the best way to teach linq is to show a simple example, then write out the equivalent code using loops and if/elses. I like to work through some of the 101 LINQ samples for this. Once you get to a where + skip + take there won't be a person in the room who doesn't understand why linq is so powerful/expressive. Once everyone understands the basic operators I talk about deferred queries across various Linq providers.
5/20/2011 12:46 AM | Ryan
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

@Ryan: That also works too, but some of the LINQ expressions, if written using traditional loops, etc, would be very complex indeed!
5/20/2011 9:39 AM | James Michael Hare
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

Excellent slides. Definitely makes things more clear.
5/22/2011 11:40 AM | Nick
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

Thanks, found this really useful - finally understand lambdas!
5/22/2011 10:15 PM | Marcus
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

thanks... too bad i didn't see these slides a month ago ;)

well, onward and upward
5/29/2011 12:08 AM | roger
Gravatar

# re: C#/.NET Fundamentals: Of Lambdas and LINQ

Thanks all for the great feedback and compliments!
6/6/2011 4:11 PM | James Michael Hare
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 
 

Powered by: