Getting Started with Lambda Expressions with Jeremy Clark

Поделиться
HTML-код
  • Опубликовано: 25 авг 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.

Комментарии • 65

  • @CuriousFunguy
    @CuriousFunguy 6 лет назад +7

    2:26 : Intro
    3:40 : Define lambda expressions Generic Delegate (ruclips.net/video/3Q4LKCIYrzQ/видео.html#t=5m26s)
    4:13 : What is a delegate (ruclips.net/video/D2h46fvQX04/видео.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.

  • @LinZhuispanser
    @LinZhuispanser 6 лет назад +5

    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!

  • @jprsfragoso
    @jprsfragoso 6 лет назад +6

    That first example of transformation was just what i needed... thank you so much

  • @marianakrysteva2876
    @marianakrysteva2876 6 лет назад +12

    This is the best explanation of lambda expressions! I understand it now. Thank you for making this video!

  • @sanfordhoffman2392
    @sanfordhoffman2392 7 лет назад +4

    Excellent video guys. 6 months ago I would not have had a clue about what you guys are doing. Today it ALL made sense.

  • @JustDavidRS
    @JustDavidRS 7 лет назад +24

    holy shit I understand it now

    • @contr0lo
      @contr0lo 6 лет назад +2

      Dutchman Chris me too what a mind blow lol

  • @Linkario86
    @Linkario86 5 лет назад +10

    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.

  • @davidjennings6293
    @davidjennings6293 2 года назад

    Best explanation of Lambdas I have seen. I will definitely be checking out Jeremy's Linq and Generics videos. Thanks.

  • @flyingbirds4235
    @flyingbirds4235 5 лет назад +1

    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.”

  • @vusimdudu9033
    @vusimdudu9033 3 года назад

    Brilliant, first time this has been explained so I can understand, thanks.

  • @larshavemann9576
    @larshavemann9576 4 года назад

    He makes it sound so easy. Fantastic video!

  • @shvideo1
    @shvideo1 4 года назад

    Very well explained. Great material. Thank you for taking the time.

  • @Jim.Husband
    @Jim.Husband 2 года назад

    A stellar explanation - thank you!

  • @oliverdo2163
    @oliverdo2163 4 года назад

    This was so informative and amazing. Thank you so much!

  • @zumazumy2257
    @zumazumy2257 4 года назад

    Thanks sir, your explanation is amazing
    really thanks

  • @nand1088
    @nand1088 6 лет назад

    Great explanation loved it...Solid Principal point wow..

  • @chefbennyj
    @chefbennyj 6 лет назад

    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?

  • @waqasahmad-jl4km
    @waqasahmad-jl4km 6 лет назад +6

    Perfect way to not let other people understand your code

  • @arielspalter7425
    @arielspalter7425 3 года назад

    Awesome video.

  • @KeithSwanger
    @KeithSwanger 4 года назад

    Great video! Thank you so much!

  • @comedyvideos4640
    @comedyvideos4640 8 лет назад

    very nice tutorial thanks a lot

  • @arihasan3423
    @arihasan3423 5 лет назад +1

    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.

    • @Jel.Awesh.M
      @Jel.Awesh.M 5 лет назад

      That is because delegates are the representation of lambda expressions.

  • @breakchiller
    @breakchiller 2 года назад

    love it

  • @FunnyBaidu
    @FunnyBaidu 7 лет назад

    thanks, the way to teach is awesome!

  • @mangabu5124
    @mangabu5124 2 года назад

    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?

  • @ionicafardefrica
    @ionicafardefrica 5 лет назад +1

    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...

  • @solgato5186
    @solgato5186 8 лет назад +2

    haha I can't hear "delegates" right now... it just turns to fuzzy static

  • @TheRemixDenuo
    @TheRemixDenuo 8 лет назад +1

    are lambda expressions compiled or are they interpreted on runtime?

    • @NeatLedger
      @NeatLedger 7 лет назад +2

      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.

  • @yamazakifed
    @yamazakifed 5 лет назад +1

    all well explained but wouldn't do a tutorial with UI code examples. delegates to regular functions would have been easier

    • @Linkario86
      @Linkario86 5 лет назад

      Depends on the Person I guess. I needed this.

  • @psyoperator
    @psyoperator 5 лет назад +1

    Darling, Danke Schoen!

  • @Beyluta
    @Beyluta 6 лет назад +2

    why do I find coding so interesting? most of my friends get bored to death but I love it.

  • @rodrigocharnichart7939
    @rodrigocharnichart7939 6 лет назад

    Hi. Thanks for this video. It was awesome. I would like to know how to email you from RUclips, but I don't know. I want a Subscription for Jeremy's videos on Pluralsight. Regards.

  • @MrMiniMe03
    @MrMiniMe03 7 лет назад +1

    Sound output is really low on the video

    • @c0deporn
      @c0deporn  7 лет назад

      Sorry about that, had some leveling issues when producing the video.

  • @user-ej3iw8lw3w
    @user-ej3iw8lw3w 2 года назад

    lambda expressions are nameless methods that can't be instantiated

  • @putinscat1208
    @putinscat1208 7 лет назад

    @1:06. Did he just say 'sucky'?

  • @albertmpro83
    @albertmpro83 9 лет назад +1

    Lamaba = ability to define one-time function in scope of function

    • @lrhlpz
      @lrhlpz 6 лет назад

      lambda can be reused.

  • @ThePein124
    @ThePein124 6 лет назад +2

    Nice tutorial thanks a lot
    but , BadJokesExciptionNoHandled

    • @FurryDanOriginal
      @FurryDanOriginal 6 лет назад +3

      The name 'BadJokesExciptionNoHandled' does not exist in the current context

  • @helloworlds7
    @helloworlds7 9 лет назад

    Please give me pluralsight subscription of jeremy design patterns

    • @c0deporn
      @c0deporn  9 лет назад

      Shankar Mannem Send an email to c0deporn.show@gmail.com

  • @WarrenBey
    @WarrenBey 8 лет назад +1

    Why do you guys do so much Microsoft stuff?

    • @elliottgreen8828
      @elliottgreen8828 7 лет назад

      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! :(

    • @WarrenBey
      @WarrenBey 7 лет назад

      Elliott Green yeah but mono and vim are just more productive.

    • @nommy8599
      @nommy8599 6 лет назад

      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.

  • @w.altmandonald3881
    @w.altmandonald3881 6 лет назад

    where is your email?

  • @ctbram0627
    @ctbram0627 9 лет назад +17

    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!!!

    • @c0deporn
      @c0deporn  9 лет назад +9

      +ctbram0627 True, if care is not taken, the code can get unruly awfully fast. But, that can be said of any language/code base.

    • @lrhlpz
      @lrhlpz 6 лет назад +1

      not really, lambda functions are trivial today, and any programmer must learn about it because linq.

    • @jansunman7393
      @jansunman7393 5 лет назад

      Agreed, if you leave out the syntax obfuscation nothing new is left.

  • @FlashManinSpace
    @FlashManinSpace 8 лет назад

    Lambda is the foundation of all programming languages.

  • @FacePalmProduxtnsFPP
    @FacePalmProduxtnsFPP 6 лет назад

    It's gonna crash

  • @anomalii7720
    @anomalii7720 4 года назад

    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.

  • @lozoft9
    @lozoft9 6 лет назад

    Still makes no sense whatsoever. there's no point other than providing a barrier to entry.

    • @c0deporn
      @c0deporn  6 лет назад

      What are you having trouble with?

  • @stewiegriffin6503
    @stewiegriffin6503 6 лет назад +1

    don't watch this. after the end of video you will know less

    • @nommy8599
      @nommy8599 6 лет назад +2

      I think that's just you Stewie