C# 3’s lambda etc..... Do I really need this
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Absolutely. Become a good shepherd and learn all about lambs, ... Oh my bad. You said lambda. Sorry. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Yes.
Kevin
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Yes.
Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango
-
Absolutely. Become a good shepherd and learn all about lambs, ... Oh my bad. You said lambda. Sorry. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
He should start off on learning to dance the salsa before moving onto the lambada.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Yes. And I must add that after you get used to using them there are some excellent everyday uses.
Ennis Ray Lynch, Jr. wrote:
Unpaid overtime is slavery.
Trollslayer wrote:
Meetings - where minutes are taken and hours are lost.
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
seeing it's popular, "Yes!" :laugh:
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Errm - they aren't just for C#, and no you don't. You could just continue coding with gotos and monolithic procedures if you really wanted to. After all, who needs these fancy, schmancy features? Productivity is for wimps after all.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Once you get them, they're totally, absolutely awesome. Besides that, it only really takes 10 minutes.
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
Yes, unless you have something against expressive and easy to follow code...
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
-
They're just like nameless methods (from C# 2), but instead of the
delegate
keyword you have=>
What's there to learn?That's not all there is to them. Code-as-data. It's what enables Linq-to-SQL and the million + 1 LINQ providers out there.
Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango
-
They're just like nameless methods (from C# 2), but instead of the
delegate
keyword you have=>
What's there to learn?Unless, of course, he never used anonymous methods either ....
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
-
Do I really need to learn this C# 3’s lambda whatever...........
Tapas Shome System Software Engineer Keen Computer Solutions 1408 Erin Street Winnipeg, Manitoba Canada R3E 2S8 http://www.keencomputer.com www.ias-research.com/blog
No, you don't *have* to, but they're extremely useful and I'd highly recommend it. I wrote an article to help out with the learning process: Lambda Expressions and Expression Trees: An Introduction[^] </shameless-plug> Also check out extension methods because a lot of the places where lambdas are used involve extension methods as well. (Whoa, that's cool! :omg: I pasted the link to my article and it automatically put in the link with the article's title! Good work Chris and co! :cool: )
-
He should start off on learning to dance the salsa before moving onto the lambada.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
:-D
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
-
No, you don't *have* to, but they're extremely useful and I'd highly recommend it. I wrote an article to help out with the learning process: Lambda Expressions and Expression Trees: An Introduction[^] </shameless-plug> Also check out extension methods because a lot of the places where lambdas are used involve extension methods as well. (Whoa, that's cool! :omg: I pasted the link to my article and it automatically put in the link with the article's title! Good work Chris and co! :cool: )
J. Dunlap wrote:
Also check out extension methods because a lot of the places where lambdas are used involve extension methods as well.
Good call. My most frequent use of lambdas are with extension methods for collections to do things like Where, Select, Sorting, etc.
Ennis Ray Lynch, Jr. wrote:
Unpaid overtime is slavery.
Trollslayer wrote:
Meetings - where minutes are taken and hours are lost.
-
Errm - they aren't just for C#, and no you don't. You could just continue coding with gotos and monolithic procedures if you really wanted to. After all, who needs these fancy, schmancy features? Productivity is for wimps after all.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
And unprofessional coders. Never forget the large proportion of progressive and educated development professionals that churn out unprofessional code when they fall prey to these Satanic and Lazy constructs that have only recently been accommodated in the most Utopian language and runtime that is C# 3.0 on .NET Framework 3.5. OK, that felt a bit like little boy scouts probably felt when they held Nazi banners up high for visiting diplomats and politicians.
-
Yes, unless you have something against expressive and easy to follow code...
Oh, heathen! What is wrong with redundantly declared (non-)anonymous methods, used in shelf-operations like "Distinct". Oh the code. it haunts me so not having to rewrite an debug it, but I'm not a professional coder, so I must either get used to debugging boilerplate, or shape up and stop rewriting code with spelling and typing mistakes. I mean, I had the logic correct all the time, but these little agents of the Dark One keep throwing magnetic spanners in my freaking production line for "Real Life Output".
-
J. Dunlap wrote:
Also check out extension methods because a lot of the places where lambdas are used involve extension methods as well.
Good call. My most frequent use of lambdas are with extension methods for collections to do things like Where, Select, Sorting, etc.
Ennis Ray Lynch, Jr. wrote:
Unpaid overtime is slavery.
Trollslayer wrote:
Meetings - where minutes are taken and hours are lost.
This whole extension method, new-fangled thang is more dangerous than gay marriage! Vote to stop it before it gets to your youth. :suss: Thatv was a lot easier to squeeze in that a programming post. :laugh:
-
He should start off on learning to dance the salsa before moving onto the lambada.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
tonight we will use the lambda, the forbidden construct !