Deep .NET: Deep Dive on LINQ with Stephen Toub and Scott Hanselman

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 160

  • @antonio_carvalho
    @antonio_carvalho 7 місяців тому +126

    Stephen Toub is a great presenter and extremely knowledgeable, what a combo!

    • @SajadJalilian
      @SajadJalilian 7 місяців тому +4

      This combination is the main reason his videos are extremely exciting.

    • @osman3404
      @osman3404 7 місяців тому +2

      YES YES ... also Scott is also the BEST host I've ever seen ... he has amazing empathy to sense what we the audiebnce thinking and he calls it out

  • @weneedlittlepatience
    @weneedlittlepatience 7 місяців тому +240

    Wake up babe, dotnet dropped another deep dive with Stephen Toub (we want more)

    • @naveenkp7849
      @naveenkp7849 6 місяців тому

      Absolutely

    • @frankhaugen
      @frankhaugen 6 місяців тому +2

      And longer, these teases are way too short. 😢
      I want to absorb all the knowledge they have

    • @smokingsnakes_project
      @smokingsnakes_project 5 місяців тому

      Yes!!!! More, please :)

  • @SlackwareNVM
    @SlackwareNVM 7 місяців тому +49

    Hour, hour and a half attention span? I'm waiting for the 5 hour Director's Cut Extended Edition.

    • @Assgier
      @Assgier Місяць тому

      That would probably even make Peter Jackson feel jealous.

  • @vandersonguidi
    @vandersonguidi 7 місяців тому +100

    I'm a simple person, if Stephen Toub is in the video I'll watch it

  • @pmnm113
    @pmnm113 7 місяців тому +9

    That's how you teach dotnet, I will await for stephentoub

  • @mar_sze
    @mar_sze 7 місяців тому +27

    I love these deep dives! Even though I'm already familiar with most of it, there's always a few hidden gems to learn. And I also just enjoy listening to Stephen Toub explain these things from the ground up.

    • @ripvannwinkler
      @ripvannwinkler 7 місяців тому +4

      I love the time limit they impose because with someone like ST, you know you're going to get right to the meat of the discussion without a lot of cruft. And revisiting something we use every day to explain it in low level detail really helps understand the WHY behind the implementation. GREAT stuff Scott/Stephen.

  • @sergiojrdotnet
    @sergiojrdotnet 7 місяців тому +4

    I've been waiting for a series like this for a Int64 time! What an amazing presentation. Please keep it up!

  • @johndonaldmelville
    @johndonaldmelville 7 місяців тому +31

    Please, more Stephen Toub -- the deeper the better. Reminds me of the good old days watching Channel 9 in the early 2000s. It (at least looked like) a few guys walking around Microsoft with a video camera asking crazy smart people to explain incredibly difficult problems. It is fun to see smart people thinking hard whether I care about the particular technology or not.

    • @rcherrycoke7322
      @rcherrycoke7322 4 місяці тому

      I’m glad there’s someone else out there that remembers c9

    • @andersborum9267
      @andersborum9267 4 місяці тому

      Remember the talks with Eric Meier, Bart de Smet etc on the duality of IEnumerable and IEnumerator? (i.e. Rx?) :)

    • @andersborum9267
      @andersborum9267 4 місяці тому

      @@rcherrycoke7322 those were the days, clearly remember the whiteboard sessions, and these videos are a step in the right direction.

  • @djchrisi
    @djchrisi 7 місяців тому +1

    Looking forward for the next part. Reflection is a topic I think a deep dive is interesting.

  • @osman3404
    @osman3404 7 місяців тому +14

    This video is BETTER than ANYTHING on Netflix :) and the Suprise ending was so cool too

  • @thedarktower75
    @thedarktower75 7 місяців тому +4

    This series with Scott and Stephen is the best programming-related thing I've ever seen on UA-cam.
    Thank you so much!

  • @oluwolekolawole3802
    @oluwolekolawole3802 7 місяців тому +2

    I love it that there are still people who are actual Computer Science nerds out there. At the end of the day, a lot of syntactic sugar boils down to `1: doSomething(); 2: if not done, GoTo 1;`

  • @TheChonsey
    @TheChonsey 7 місяців тому +2

    I really enjoy watching and learning from you guys. Pedagogical side of thing is just brilliant. It's so useful when Scott once in a while "takes the foot off the gas pedal" to explain "simple" things like underscore in an integer to separate thousands etc. It's so deep and explaining things from the first principles. Understand once and apply everywhere. It's like a breath of fresh air in an otherwise clean-code and clean-architecture flooded environment.

  • @zakizaz1
    @zakizaz1 7 місяців тому +14

    Thank you guys . Please don't stop those series

  • @SlackwareNVM
    @SlackwareNVM 7 місяців тому +13

    I would love to see a part 2 with all of the potential optimizations.
    When you peek unther the covers to see how a library or .net itself implements things, it's really easy to get lost in the code, but a lot of the complexity comes from optimizations that have accumulated over time. It'd be great to be able to build a mental catalogue of "optimization patterns" so that we have an easier time reading code. I think this series will help immensely with this.

  • @draganradovac8803
    @draganradovac8803 6 місяців тому +1

    No session with Stephen Toub is ever long enough. Thanks guys that was awesome.

  • @AnupShah
    @AnupShah 7 місяців тому +2

    Cheer up guys who is looking this now rather being on Netflix. Thanks Scott. Stephan while reading your old blogs post for async and stuff wished to see you like this and it’s dream true.
    Please bring more stuff. This gives a great motivation as well. Thanks again.

  • @jannishecht4069
    @jannishecht4069 7 місяців тому +4

    Thanks, Scott, for stressing the environmental impact. It is at least as important as saving money❤

  • @Noceo
    @Noceo 6 місяців тому +1

    This kinda feels like the UA-cam version of the infamous C# in Depth (by Jon Skeet). Not to the extend where it will replace it (even if you get all the chapters), but in the sense that you get the same deep understanding of how the language works on a lower level. I really love it and hope to see more videos of this type.

  • @acedonk
    @acedonk 7 місяців тому +3

    I believe just listening to Scotts and Stephens friendly banter makes me a better developer! 🙂

  • @marklord7614
    @marklord7614 7 місяців тому +7

    Great stuff! This session will be relevant for many years to come. Next up...Spans?

  • @RashadMaqsood
    @RashadMaqsood Місяць тому

    took the whole week to watch this video but its worth spending the time. Thanks guys. keep it up. Your latest video Let's Talk Parallel programming forced me to watch all previous videos from the start.

  • @irinamarudina3114
    @irinamarudina3114 7 місяців тому +1

    I am not even .NET but a Java developer. Still this video was a motivation booster for me and I can't wait to see the next one with the specific Array optimized version. Thank you!

  • @dy0mber847
    @dy0mber847 7 місяців тому +3

    These vids with Stephen Toub just pure gold

  • @ohdev2019
    @ohdev2019 6 місяців тому +3

    Keep this series going! Hard to find content like this, especially with this level of presentation.

  • @VincentYang024
    @VincentYang024 7 місяців тому +1

    This is fantastic series. I barely watch movie nor UA-cam video more than once except this series. Thank you Scott and Stephen🎉🎉

  • @larskjrsgaard4881
    @larskjrsgaard4881 5 місяців тому

    More of this, please. Scott and Stephen are great at these. Enjoyable, deeply satisfying and these peeks into the layer below my daily dev life are super interesting and are certainly having a valuable impact on my work. Just great stuff!

  • @nepalxplorer
    @nepalxplorer 7 місяців тому +1

    Don't Stop these coming!

  • @ryanharris5968
    @ryanharris5968 7 місяців тому +3

    Brilliant stuff. Enjoyed it thoroughly. The great thing about this type of content is that it’s making me think deeper about the code I write.

  • @sandeepmadineni2981
    @sandeepmadineni2981 7 місяців тому

    I am loving these deep dives and the energy and enthusiasm between the two is fantastic. Not to mention the little things you drop in between like sealed classes, statemachine, profiler, benchmark, interlocked vs threadid kept me engaged.
    Keep throwing these videos, we are happy to catch.
    Awaiting for the next one..

  • @CuriouslyContent
    @CuriouslyContent 7 місяців тому

    Would anyone else pay good money to see Stephen Toub do a dometrain-style course on performance profiling and optimization? Starting with how he thinks about performance optimization, talking about techniques and tools and then running through a robust example using everything he covered to optimize some piece of code... would be super cool if he did it for some open source project as a microsoft-sponsored demo using VS or any other stuff MS wants to showcase. Maybe a piece of OS code that MS uses internally but could never justify spending Stephens time on ;-)
    We need more Stephens. Would be good for the next generation of programmers to have a solid-starting point for this kind of work.

  • @TheProTip
    @TheProTip 7 місяців тому +1

    A deep dive on DLR would be awesome. There is a lot of FUD about "dynamic" that proliferates.

  • @egvijayanand
    @egvijayanand 6 місяців тому

    The reason why the exception is thrown during the MoveNext call is the cursor, which keeps track of the items, is positioned right before the first item on the Enumerable. Similarly, the LINQ query is executed when it's used and not where it's defined.

  • @caseyspaulding
    @caseyspaulding 7 місяців тому +1

    Thank you! Stephen is great at explaining code and Scott ask questions that I am thinking!

  • @stevanfreeborn
    @stevanfreeborn 7 місяців тому

    Thank for taking the time to share all your smarts with us!

  • @ChaseFreedomMusician
    @ChaseFreedomMusician 7 місяців тому +2

    This series is great!! Thank you!

  • @lolroflxd
    @lolroflxd 7 місяців тому

    Awesome. Cant wait for a extreme deep dive extended directors cut version :D
    Could watch this content all day long

  • @denisivanov4888
    @denisivanov4888 7 місяців тому +1

    Gold channel with gold videos.

  • @markgottselig3059
    @markgottselig3059 7 місяців тому

    I would absolutely love more Stephen Toub videos! Please get him a decent microphone though, I find the difference in audio quality between Scott and Stephen is distracting

  • @teevee-ej6zm
    @teevee-ej6zm 7 місяців тому +1

    Thank you that was a great tutorial and very very insightful deep dive. Here we see linq is iterators all the way dow ;)
    Also thank you Scott for constantly telling Stephen to stop zooming out. Its very hard for us trying to follow the super fast drain dump going on and suddenly the code becomes completely unreadable due to Stephen zooming out all the time.

    • @mb7604-g9v
      @mb7604-g9v 6 місяців тому

      I actually found that to be a little distracting

  • @fabii5555
    @fabii5555 7 місяців тому +1

    The original video got removed while I was watching it. My heart dropped a beat when the connection error popped up 😵

  • @trannhan1432
    @trannhan1432 2 місяці тому

    This video is totally insane. Many thanks for your excellent job!

  • @sudidav
    @sudidav 7 місяців тому +1

    Thanks a lot for the time you guys are putting on this. This is great stuff!

  • @Bill-s6j2w
    @Bill-s6j2w 6 місяців тому

    Surely Reset() is a member on IEnumerator because IEnumerator is C#'s version of the well documented (GoF) Iterator pattern, which is described as MoveNext(), GetCurrent(), and Reset()

  • @CuriouslyContent
    @CuriouslyContent 7 місяців тому

    If Stephen wasn't doing so much good work on everything he touches, I would say please make more videos! But I can't help worrying that every minute he spends explaining something to me, he's not making the language/framework more awesome. We need to clone this mans brain!

  • @elliotdematteis7825
    @elliotdematteis7825 7 місяців тому +1

    Holy crap just finding out about these deep dives, literally cannot wait to finish this and click on the async/await one sitting in the "up next" section of youtube lol

  • @damiengu
    @damiengu 7 місяців тому +1

    While this is very cool it's also worth remembering that LINQ to Objects (in-memory implementations like this) are just the tip of the iceberg. Expression trees and IQueryable is what sets LINQ and C# apart from similar in-memory techniques in JavaScript, Swift etc. They don't have a way to get the syntax tree and to allow the query to be translated to a completely different remote language like SQL.

  • @wiseskeshom4673
    @wiseskeshom4673 6 місяців тому

    Thank you for the amazing Deep Dive series. We want more please 😊

  • @WillEhrendreich
    @WillEhrendreich 7 місяців тому +2

    I'd love to hear from more people from the fsharp side of life!! Get Chet Husk, Jimmy Byrd, Vlad Zarytovskii, Don Syme, the whole gang.

  • @JeanQPublique
    @JeanQPublique 7 місяців тому +1

    It's nice to get some dotnet content for experienced devs.

  • @hakanfostok2547
    @hakanfostok2547 5 місяців тому

    Great is little word for what you both are doing, words can not describe it, please keep going.

  • @DevelTime
    @DevelTime 7 місяців тому

    Great video thank you very much. Bring some more goodies, please 🙂 but just remember about proper font size (thank you Scott 🙂 ). Maybe go even deeper with optimization, profiling, micro details. The check with current thread was really neat, I wonder what else Stephen keeps in his sleeves 🙂

  • @cloudycloudlet7091
    @cloudycloudlet7091 7 місяців тому

    I love the deep dive videos with Stephen. Please do more!

  • @hhgforfhuv
    @hhgforfhuv 7 місяців тому

    Stephen Toub legend, thanks for videos with him.

  • @mmfarahat1
    @mmfarahat1 6 місяців тому +1

    A very useful series, thanks

  • @yonatan2608
    @yonatan2608 7 місяців тому +1

    Oh no, another video with Stephen Toub!!!

  • @OeHomestead
    @OeHomestead 6 місяців тому

    Keep 'em comin' :-) Parallelism, threading, optimisation, how to take advantage of all the language features next?

  • @jarosawfrankowski7845
    @jarosawfrankowski7845 7 місяців тому

    One of my favorite series!

    • @LouisWaweru
      @LouisWaweru 7 місяців тому +1

      I hope it’s a series

  • @gilbertsenyonjo963
    @gilbertsenyonjo963 2 місяці тому

    Woww. I've learnt alot from this session. Thanks guys

  • @WillEhrendreich
    @WillEhrendreich 7 місяців тому +1

    That was great, thanks!

  • @ivandrofly
    @ivandrofly 28 днів тому

    25:58 - the three hard thing are: naming; off by one error; cache validation

  • @Spirch
    @Spirch 7 місяців тому

    it's nice to see this, please continue the series

  • @ekkalchev
    @ekkalchev 7 місяців тому

    Stephen Toub should be the dotnet president. Vote with thumbs up or down.

  • @robadubbdubb
    @robadubbdubb 7 місяців тому +1

    Just fantastic. As always. Thanks guys!

  • @emmanueladebiyi2109
    @emmanueladebiyi2109 7 місяців тому +1

    This series is amazing!

  • @Runningalien
    @Runningalien 6 місяців тому

    awesome presentation! very interesting and very well presented! Thank you!

  • @dankeseb4825
    @dankeseb4825 7 місяців тому

    Great series, looking forward to the next one.

  • @mewsic2496
    @mewsic2496 7 місяців тому

    Amazing video thank you Scott and Stephen !

  • @bluecup25
    @bluecup25 7 місяців тому +3

    yay it is back

  • @ghosttie
    @ghosttie 7 місяців тому +3

    Is the analyzer that makes classes sealed publicly available?

    • @7th_CAV_Trooper
      @7th_CAV_Trooper 7 місяців тому

      Probably an editorconfig setting

    • @jmlane
      @jmlane 5 місяців тому

      I came here to ask the same question. It would be useful!

  • @josephizang6187
    @josephizang6187 7 місяців тому

    I love these deep dives. Thanks guys.

  • @dejavupk
    @dejavupk 7 місяців тому

    Thank you! That is great video. Can't wait for more 🙂

  • @MB-or1kh
    @MB-or1kh 6 місяців тому

    Great show! Keep them coming.

  • @juanbautista6766
    @juanbautista6766 7 місяців тому

    Keep these deep dives coming!

  • @kousikpandey3401
    @kousikpandey3401 4 місяці тому

    Hi Stephen! Thanks for the nice session.
    I have one question though.
    What would have been the problem if we would have created '_enumerator' from inside 'Enumerator' constructor.

  • @Martin-zo7en
    @Martin-zo7en 6 місяців тому

    @14:17 What is the shortcut Stephen uses to go from the auto-suggested "Select" to "select"?

  • @WeihanLi-iHerb
    @WeihanLi-iHerb 7 місяців тому

    thanks very much for sharing, love it, we want more please

  • @arabiceasycode
    @arabiceasycode 7 місяців тому

    love this vedio, youtube should pin it in the top of other videos!

  • @HIOLLJ
    @HIOLLJ 7 місяців тому

    Hyped for part 2.

  • @iamkilroiyo
    @iamkilroiyo 6 місяців тому

    I love this series.

  • @seancpp
    @seancpp 6 місяців тому

    I'm pretty sure the saying is:
    The 2 hardest things in computer science are: Naming things, cache invalidation, and off-by-1 errors

  • @--Eric--
    @--Eric-- 7 місяців тому

    Thank you both, this was great, as usual… 👏🏼

  • @mahmoud.shaheen
    @mahmoud.shaheen Місяць тому

    Amazing video thanks

  • @kamatapa
    @kamatapa 7 місяців тому

    Love these deep dives...

  • @Danielspss
    @Danielspss 7 місяців тому

    this was just what i need it, thank you

  • @moshtabamorsali
    @moshtabamorsali 6 місяців тому

    First I watched async/await video and thought that is too much for me. Now I'm watching this and find out even LINQ is too much for me :')

  • @kodindoyannick5328
    @kodindoyannick5328 2 місяці тому

    Awesome content! Thanks

  • @daveblack6951
    @daveblack6951 7 місяців тому

    That was quite something! Thanks.

  • @_Miguel_Roman_
    @_Miguel_Roman_ 6 місяців тому

    Excellent talk!

  • @egvijayanand
    @egvijayanand 6 місяців тому

    44:08 Could have checked for null, initialize the Enumerator field to null, and then set it here only if it's null. Using int-based state variable doesn't look good.

  • @Kitulous
    @Kitulous 7 місяців тому

    didn't know you could goto a case branch to fall through!

  • @dzllz
    @dzllz 6 місяців тому

    This is amazing! But.. Toub uses VS in white mode? :O

  •  6 місяців тому

    Great video.

  • @juan_w_fer
    @juan_w_fer 7 місяців тому

    This was super interesting!

  • @PerWillner
    @PerWillner 7 місяців тому

    Wow, I am hooked 🤯👍

  • @JakobStrasser
    @JakobStrasser 7 місяців тому

    Very interesting, thanks!

  • @warrenbuckley3267
    @warrenbuckley3267 7 місяців тому

    This was excellent, really enjoyed it. I'm really looking forward to part 2

  • @fedayka
    @fedayka 7 місяців тому

    This is great! Thanks guys!

  • @BloodHaZaRd666
    @BloodHaZaRd666 7 місяців тому +3

    I have question, if we use Select or Where does it create a new copy of the original source or what and if yes does this mean that using linq may have performance issues ?

    • @mar_sze
      @mar_sze 7 місяців тому +4

      No copy of the source created, but LINQ uses deferred execution (lazy evalutation), so nothing will be enumerated until you use foreach or call ToList(), First() etc. LINQ has excellent performance, so don't be afraid to use it (except in very low-level scenarios).

  • @EstebanAstudillo
    @EstebanAstudillo 6 місяців тому

    Awesome stuff!