Getting Started with Lambda Expressions with Jeremy Clark
Вставка
- Опубліковано 15 жов 2024
- Subscribe for more content: vid.io/xqZ4
Check out our other videos: vid.io/xqZ9
Lambda expressions aren't that hard and in this episode, Jeremy Clark explains just how easy it is to work with and use lambdas in C#/.NET
www.JeremyBytes...
/ jeremybytes
/ jeremybytes
www.pluralsight...
Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language (also in Visual Basic and potentially any other .NET language). With LINQ, a query is now a first-class language construct, just like classes, methods, events and so on.
For a developer who writes queries, the most visible "language-integrated" part of LINQ is the query expression. Query expressions are written in a declarative query syntax introduced in C# 3.0. By using query syntax, you can perform even complex filtering, ordering, and grouping operations on data sources with a minimum of code. You use the same basic query expression patterns to query and transform data in SQL databases, ADO.NET Datasets, XML documents and streams, and .NET collections.
2:26 : Intro
3:40 : Define lambda expressions Generic Delegate (ua-cam.com/video/3Q4LKCIYrzQ/v-deo.html#t=5m26s)
4:13 : What is a delegate (ua-cam.com/video/D2h46fvQX04/v-deo.html)
5:11 : lambda anatomy breakdown
8:30 : event handling
13:31 : syntactic variations
17:20 : Coding
17:40 : event handler
20:20 : make an anonymous delegate an event handler (inline)
21:40 : delegate to lambda expression conversion
22:45 : syntactic variation in-code
25:43 : final in-line result of lambda expression
27:50 : example of an application
31:36 : delegate (Func type) signature that lambda must match
33:14 : design patter: pass a delegate as parameter to a method
34:55 : SOLID principles
35:52 : trusting implementation of delegate
37:05 : conclusion
Thank you for this awesome explanation.
That first example of transformation was just what i needed... thank you so much
Excellent video guys. 6 months ago I would not have had a clue about what you guys are doing. Today it ALL made sense.
I like the vision that Jeremy explained the delegater as an event handler and copy past the event handler body to the anonymous delegater. Recommend!
This is the best explanation of lambda expressions! I understand it now. Thank you for making this video!
Agreed. This was great.
Best explanation of Lambdas I have seen. I will definitely be checking out Jeremy's Linq and Generics videos. Thanks.
holy shit I understand it now
Dutchman Chris me too what a mind blow lol
Brilliant, first time this has been explained so I can understand, thanks.
Very well explained. Great material. Thank you for taking the time.
Is it better to hook up an event Args delegate in an async routine returning void which contains calculated data from a long running task which can be subscribed to by other routines in order to get data? Or is it better to get data from an async function Task?
He makes it sound so easy. Fantastic video!
Wao, I never imagine I could understand it but today. Because Napoleon Hill once said “Whatever the mind can conceive and believe, the mind can achieve.”
Literally why spend 3 hours in a classroom and leave dumber than when you entered, when you can watch a 40 Minutes Video and you get it.
A stellar explanation - thank you!
This was so informative and amazing. Thank you so much!
The end of the video mentions you'd leave your email for anyone interested in getting Jeremy's pluralsight courses for free. Is that still an option?
Thanks sir, your explanation is amazing
really thanks
Great explanation loved it...Solid Principal point wow..
I was hoping the video cover lambda expressions, such as how to create one, the basics. But instead, it focuses on events and delegates while describing lambda expressions. I would reword the title.
That is because delegates are the representation of lambda expressions.
Awesome video.
haha I can't hear "delegates" right now... it just turns to fuzzy static
are lambda expressions compiled or are they interpreted on runtime?
If the language is interpreted then lambda should also be interpreted and if a language is compiled then the lambda is compiled because it's just a text that's part of the source code. Super late reply tho.
Might seem cool and useful, but you gave birth to a monster. There have been so many situations where I tried to learn a framework from a book or from someone else's code and ended up nearly punching myself in the face! People (and by "people" I mean well known programmers and book authors, not some rookies) abuse lambdas to the point where you have nested statements inside nested statements, all shorhanded into nonsensical one letter variables. And by the end of the chapter, they have the audacity to brag about how "few lines" of code it took and how "simple" their implementation is...
Great video! Thank you so much!
all well explained but wouldn't do a tutorial with UI code examples. delegates to regular functions would have been easier
Depends on the Person I guess. I needed this.
Hi. Thanks for this video. It was awesome. I would like to know how to email you from UA-cam, but I don't know. I want a Subscription for Jeremy's videos on Pluralsight. Regards.
Perfect way to not let other people understand your code
very nice tutorial thanks a lot
thanks, the way to teach is awesome!
Sound output is really low on the video
Sorry about that, had some leveling issues when producing the video.
love it
Darling, Danke Schoen!
Why do you guys do so much Microsoft stuff?
if your still curious about this question, its because 99% of industry will use some kind of vendored propriatary software/hardware/operating systems to get the best support. For example we use C# and Microsoft because all of our tools revolve around them! :(
Elliott Green yeah but mono and vim are just more productive.
It's clear mono and vim are written by novices as they can't even begin to compete with a polished Microsoft product. Sad there's so many die hard fanboys for open source rubbish of which 90% takes 2.8-7.9 times as long to use.
Please give me pluralsight subscription of jeremy design patterns
Shankar Mannem Send an email to c0deporn.show@gmail.com
@1:06. Did he just say 'sucky'?
why do I find coding so interesting? most of my friends get bored to death but I love it.
Lamaba = ability to define one-time function in scope of function
lambda can be reused.
where is your email?
Nice tutorial thanks a lot
but , BadJokesExciptionNoHandled
The name 'BadJokesExciptionNoHandled' does not exist in the current context
yes it's short hand for making your code completely illegible and making new programmers to c# want to stick an ice pick into their temples!!!
+ctbram0627 True, if care is not taken, the code can get unruly awfully fast. But, that can be said of any language/code base.
not really, lambda functions are trivial today, and any programmer must learn about it because linq.
Agreed, if you leave out the syntax obfuscation nothing new is left.
lambda expressions are nameless methods that can't be instantiated
Lambda is the foundation of all programming languages.
It's gonna crash
I, you know, want to, you know, ask what, you know is you know a you know delegate. You know
It's a horror to listen to this.
don't watch this. after the end of video you will know less
I think that's just you Stewie
Still makes no sense whatsoever. there's no point other than providing a barrier to entry.
What are you having trouble with?