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
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 !
-
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
Probably not...but I've been using lambdas in different languages for about a decade now and it is pretty darn handy at times. Right tool for the job and what not.
And above all things, never think that you're not good enough yourself. A man should never think that. My belief is that in life people will take you at your own reckoning. --Isaac Asimov Avoid the crowd. Do your own thinking independently. Be the chess player, not the chess piece. --Ralph Charell
-
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
God No! But if you ever learn it accidentally you will be surprised by how easy and useful it is and you will regret not having learn it before!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.
-
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
explain then to us :) Bryce
MCAD --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids books :The Snot Goblin, and Book 2 - the Snotgoblin and Fluff
-
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.
ROFL! Absolutely :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
It's C# 4.0 already and you are asking what has become an everyday tool :S
-
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.
Pete O'Hanlon wrote:
Productivity is for wimps after all.
Spoken like a true Klingon
____________________________________________________________ Be brave little warrior, be VERY brave
-
Unless, of course, he never used anonymous methods either ....
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
Yes, Lambda is important to learn. From what I have seen, people are starting to move more towards functional programming. Its also important to learn to utilize the generic delegates Action<> and Func<>, anonymous methods using lambda expressions (all important parts to functional programming).