Get a Taste of Lambdas and Get Addicted to Streams by Venkat Subramaniam

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2025

ความคิดเห็น • 356

  • @ruixue6955
    @ruixue6955 7 ปีที่แล้ว +569

    7:00 lambda
    7:26 backward compatibility of Java
    8:18
    9:34 why Java 8 is backed by single abstract method interfaces (@FunctionalInterface)
    9:47 if an interface is single abstract method interface, you can use lambdas instead of anonymous inner classes
    11:47 how does it work under the hood
    12:49 illusion aobut lambda - syntax sugar, i.e. on the instruciton level, it is the same as anonymous inner class
    14:16 what lambda does under the hood
    14:47 what would the compiler be doing with lots of lambda (assumption only)
    * 18:16 why it is not a good idea for lambdas to create extra classes like anonymous inner classes
    19:14 a new feature since Java 7 - instruction - invokedynamic
    20:53 in Java 8 struggling with the elimination of anonymous inner classes
    21:00 the motivation: use invokedynamic to implement lambda expressions
    25:16 example
    29:18 internal iterator
    39:00 method reference
    44:28 avoid the urge of writing a large lambda expression - an anti-pattern
    44:54 what are method references
    45:41 examples of method references
    47:15 static method reference
    49:31 parameter as a target map(String::toString)
    54:58 2 arguments
    * 56:23 the order of the arguments are important
    57:38 another example - first parameter is the target, second parameter is the argument
    59:33 limitations of method reference
    1:08:00 filter
    1:19:30 second part
    1:29:07 stream is an abstraction
    1:29:12 a stream is not a physical object with data
    1:29:24 a stream is a bunch of functions you will evaluate eventually. There is no data sitting in a stream
    1:29:48 a stream is a non mutating pipeline - stream is not mutating the data in a collection
    1:30:31 stream functions
    1:33:11 transforming function - Stream.map
    1:37:25 Stream.reduce()
    1:43:47 InStream/DoubleStream.sum() - also a reduction operation
    1:44:08 what is reduce operation - transform a collection into a concrete value or object
    1:44:51 another reduce operation - collection
    1:45:45 a wrong approach to do collect
    1:47:00 explanation of the wrong code
    1:47:18 shared mutability is devil
    1:49:04 use Collectors.collect
    1:51:17 Collectors.toMap
    1:54:17 groupingBy
    1:54:38 example
    1:57:40 another example with mapping() method
    1:59:37 performance
    2:05:40 Q: How much work?
    2:09:30 streams are LAZY
    2:10:49 intermediate operations are postponed for evaluation
    2:13:00 important
    * 2:15:43
    * 2:16:15
    2:17:37 demo for performance analysis
    2:19:36 lazy evaluations are only performed when the terminal operation is triggered
    2:27:08 intermediate operation - Stream.sorted()

    • @raghavanaliassaravananm1546
      @raghavanaliassaravananm1546 5 ปีที่แล้ว +6

      Awesome toc 👍☺

    • @MrNaveen303
      @MrNaveen303 4 ปีที่แล้ว +2

      Very informative and well explained, thank you.

    • @infitium7246
      @infitium7246 4 ปีที่แล้ว +5

      You probably made it for yourself, didn't you ;)

    • @ruixue6955
      @ruixue6955 4 ปีที่แล้ว +6

      @@infitium7246 yes, i have bad memory, so jot it down make me remember better :)

    • @tahniat
      @tahniat 4 ปีที่แล้ว +1

      Hats off!

  • @trozzonick77
    @trozzonick77 8 ปีที่แล้ว +201

    Venkat is not just really knowledgeable but he knows how tell and express concept in the way even a kid could understand . Thanks .

  • @vaib5917
    @vaib5917 8 ปีที่แล้ว +209

    One of the best java talks ever seen.
    Very informative.

    • @pacegeorgia7200
      @pacegeorgia7200 8 ปีที่แล้ว +1

      短短的看到哦的哦地盘耳畔网片 W_PP_W_PE_PE_PE_PD

    • @vkolodrevskiy
      @vkolodrevskiy 8 ปีที่แล้ว +1

      agree

  • @xvitcoder
    @xvitcoder 9 ปีที่แล้ว +116

    The best java talk I've ever seen

  • @sdevane75
    @sdevane75 8 ปีที่แล้ว +40

    finally, someone intelligent and articulate enough with great dynamic working examples explains lambda and double colon. thank you. after much searching its finally clear to me. ☺

  • @kovalski6000
    @kovalski6000 7 ปีที่แล้ว +20

    The best speaker I've ever heard. I am delighted

  • @judgeomega
    @judgeomega 8 ปีที่แล้ว +31

    What a great speaker.

  • @daddashikamani
    @daddashikamani 6 ปีที่แล้ว +8

    I have been converted to functional style programming using Lamdas and Streams thanks to Venkat.
    Double thumbs up!

  • @hastingr
    @hastingr 3 ปีที่แล้ว +7

    1:02:40-1:05 the heart of programming! Great talk!

  • @h1dden_
    @h1dden_ 2 ปีที่แล้ว +5

    Venkat was my professor at UH for my last year in computer science. He is by far the BEST computer sceince professor I have ever had. I learned more from him in one semester than I did from when I started coding in highschool.

  • @jcraane
    @jcraane 8 ปีที่แล้ว +32

    I created an IntelliJ plugin which provides similar functionality which outputs the result of a Java main execution as a tooltip. The plugin can be found here: plugins.jetbrains.com/plugin/8543?pr=idea

  • @durgadeep4988
    @durgadeep4988 8 ปีที่แล้ว +6

    Love his enthusiasm and his crisp and clear explanation.

  • @arsalalam5998
    @arsalalam5998 5 ปีที่แล้ว +4

    This is how you explain advanced stuff in simple way. Tell me why i should bother to use a new feature. Amazing.

  • @AsifAlli
    @AsifAlli 4 ปีที่แล้ว +2

    This guy speaks very well. Usually indian guys are hard to understand. This guy is awesome!

  • @ddhirajkumar
    @ddhirajkumar 6 ปีที่แล้ว +6

    Like this talk and the way of communicating some of the design philosophies. Not just what can be done.. but also the why and how of it is covered here.

  • @bangladeshibadmintonny
    @bangladeshibadmintonny 5 ปีที่แล้ว +1

    Well he said you came here for Lambda but stayed here for stream but I got addicted to Venkat. Amazing speaker. Thank you.

  • @trile2713
    @trile2713 8 ปีที่แล้ว +13

    superioriginality = qualities.reduce(blessing, (feature, excellency) -> feature.add(excellency)); Dr. Subramaniam rocks as ever. Thank you for another great session !

  • @shekharkumar78
    @shekharkumar78 7 ปีที่แล้ว +20

    Really amazing. I am a big fan of Venkat. His book "Functional Programming in Java" is also a must read for all Java Developers.

    • @ggsay1687
      @ggsay1687 4 ปีที่แล้ว

      Thanks for comment, I needed some book as a guide.

  • @sanjuro_493
    @sanjuro_493 4 ปีที่แล้ว +3

    This is hands down the best Java conference evere made

  • @jvsnyc
    @jvsnyc 4 ปีที่แล้ว +1

    One of my new favorite speakers ever. It's all gold, but the motivational parts especially, even tho the technical details are all spot on and valuable. Like 1:02 thru 1:05, not strictly technical, but extremely important in terms of WHY we need to modernize our Java style....

  • @jyotikabra72
    @jyotikabra72 3 ปีที่แล้ว +2

    he is best at explaining things...became fan of him.

  • @TheRastaDan
    @TheRastaDan 3 ปีที่แล้ว +5

    34:49 "And for the first time, in a long time, Java is finally intelligent" that was the moment I lost it. This guy has such a talent of explaining stuff!

  • @MuscleTeamOfficial
    @MuscleTeamOfficial 7 ปีที่แล้ว +10

    This guy is a great speaker! Thanks for the awesome talk.

  • @prateek6424
    @prateek6424 ปีที่แล้ว

    I just can't express how glad I am to land here. He has explained java 8 features with so much depth and conviction. Venkat sir just knows the features inside out and he is in love with Java. ❤

  • @sahilrally4491
    @sahilrally4491 8 ปีที่แล้ว +2

    Just watched 24 mins and gave my like to the video. What a speaker, cheers!!! -)

  • @harshavmb
    @harshavmb 8 ปีที่แล้ว +2

    I'm fortunate to watch this video! Speechless.. Absolutely recommended for people like me who didn't know the potentials of lambdas and streams.

  • @mirageman2
    @mirageman2 3 ปีที่แล้ว +1

    What a great talk, Venkat gave the best explanation about streams I've seen, and I've seen quite a few so far.

  • @osayamenomigie
    @osayamenomigie 6 ปีที่แล้ว +1

    Cant believe i just listen through the whole video...
    He is brilliant teacher

  • @RamPrasanthRam
    @RamPrasanthRam 7 ปีที่แล้ว +4

    Really an awesome talk,the way you explained with real time examples and jokes is really superb. You made Lambda and Stream learning so easier. Pleasure to saw your teaching and Gonna see all your talks in you tube. One of the best java talk ever ! Thank you so much Venkat

    • @nagababusattineni1114
      @nagababusattineni1114 7 ปีที่แล้ว

      Buddy, I caught you here. I even like the talk. best ever java talk

  • @usamaiqbal9933
    @usamaiqbal9933 3 ปีที่แล้ว

    One of the best java talks I have ever scene that even a beginner can understand it...

  • @ketkithosar7465
    @ketkithosar7465 3 ปีที่แล้ว +1

    I sincerely wish I could like this video more than once. Simply brilliant

  • @oleksandrdyachuk3951
    @oleksandrdyachuk3951 8 ปีที่แล้ว +4

    GREAT!!!! so many details! so many examples! awesome! thank you a lot!

  • @RobsonDev
    @RobsonDev 7 ปีที่แล้ว +5

    Fantastic presentation! What a great speaker! One of the best presentations that I've watched.

  • @chintangandhi4500
    @chintangandhi4500 5 ปีที่แล้ว +1

    I had come to see this video to brush my knowlege. I ended up learning many new things. excellent explaination

  • @shailendra-mani
    @shailendra-mani 8 ปีที่แล้ว +3

    Great talk, very informative for those who are starting to work on java 8. Awesome explanation.

  • @vipulchauhan5317
    @vipulchauhan5317 8 ปีที่แล้ว +1

    Thanks a lot for such a informative talk.. watched entire 2:47 hours

  • @akossarnyai4978
    @akossarnyai4978 2 ปีที่แล้ว

    This is one of the best videos that I saw about Streams and Lambdas!!

  • @maruthih5415
    @maruthih5415 5 ปีที่แล้ว +1

    Indeed a great talk on lambdas and streams. If you have been coding in java for a year or more , then you could even watch it at 1.75x without losing on any info

  • @cong0929
    @cong0929 2 ปีที่แล้ว

    Wow! Great explaination of Lambda and Streams. His explaination and examples are so concise and easy to understand that I've ever seen. Very very thanks !!

  • @manojkumarmurugan5808
    @manojkumarmurugan5808 4 ปีที่แล้ว +1

    He is amazing!! Best Java talk ever

  • @anilreddy1613
    @anilreddy1613 3 ปีที่แล้ว

    His pace of explanation is perfectly suitable for me

  • @bikejoede
    @bikejoede 7 ปีที่แล้ว +1

    Venkat is an awesome teacher! Thanks a lot for sharing!

  • @SandyRocks007
    @SandyRocks007 5 ปีที่แล้ว +1

    Indians are awesome! thanks, Venkat sir.

  • @mitulvaghela906
    @mitulvaghela906 4 ปีที่แล้ว

    Claps for your passion for programming especially for your comments at 1:00

  • @mangasreekanth
    @mangasreekanth 6 ปีที่แล้ว +1

    Brilliant. Best value for 2 hours spend watching the video

  • @sunilchandramn3001
    @sunilchandramn3001 4 ปีที่แล้ว

    your one of the best teacher I have seen till now..

  • @parashar1505
    @parashar1505 2 ปีที่แล้ว +3

    I just love that editor and how intelligent that thing is! Venkat should do just one nice session on that editor setup. That would help the community so much :)

    • @kpvenkatesan
      @kpvenkatesan 2 ปีที่แล้ว

      Did you find that already?

    • @sonyex52
      @sonyex52 2 ปีที่แล้ว

      @@kpvenkatesan Its TextMate

  • @ketangupta1910
    @ketangupta1910 3 ปีที่แล้ว

    1:06:00 One of the best explainations

  • @LauriusT
    @LauriusT 8 ปีที่แล้ว +1

    Wow, not sure why I didn't use of java 8 functional style until now. Great talk

  • @thyagtubes
    @thyagtubes 4 ปีที่แล้ว +5

    A rare species : someone who can do tech, can talk and also keep you engaged for a full 3 hours.

  • @TheMinino123
    @TheMinino123 7 ปีที่แล้ว +2

    Thank you so much, Venkat!!!

  • @osematouati2430
    @osematouati2430 3 ปีที่แล้ว

    Thanks a lot this man is competent,
    Small mistake on 1:43:00 the first param of reduce is actually R not T. the same as return type.

  • @t_sathis
    @t_sathis 4 ปีที่แล้ว

    As the title says, I addicted to Stream; But I addicted to your lectures more than it. Thanks Venkat, it was really helpful.

  • @susaninj
    @susaninj 7 ปีที่แล้ว +3

    Awesome. Excellent presentation. I wish I have seen this earlier. Recommend.

  • @jineshshah566
    @jineshshah566 5 ปีที่แล้ว +1

    Finest explanation on streams. Thank you very much!

  • @AkashSingh-el1ew
    @AkashSingh-el1ew 3 ปีที่แล้ว

    Been 6 years and it's still useful :)

  • @hirenpandit8499
    @hirenpandit8499 8 ปีที่แล้ว +51

    "When you have 9 million programmers using your language and out of which 1 million programmers know where you live you have to decide things differently." :D

    • @GawblyOG
      @GawblyOG 8 ปีที่แล้ว

      HEX D

  • @DhrumilShahDOTin
    @DhrumilShahDOTin 4 ปีที่แล้ว +1

    just came to learn lambda.... never had a blast before learning programming concepts

  • @zeroxcub
    @zeroxcub 8 ปีที่แล้ว +1

    Really like the part with the performance analysis, most video about FP stop on the declarative part and don't go further.
    Thanks Sir, you got my like

  • @pksanthoshkumar
    @pksanthoshkumar 5 ปีที่แล้ว +1

    Amazing lecture on functional programming. The best I ever heard!

  • @alex771304
    @alex771304 2 ปีที่แล้ว

    Thank you. It is such informative video and I really love the way you present it.

  • @rajeshkumarpatel5068
    @rajeshkumarpatel5068 6 ปีที่แล้ว +1

    Nice explanation sir... Very informative.. I would say I have never attend any tech show.. Where someone explained like this during my entire career.. Lol now I got it what was missed in my eduction. 😕😕

  • @brave111111
    @brave111111 5 ปีที่แล้ว +1

    Awesome sessions. Java made easy and interesting. Excellent speech.

  • @giddaiahkummari2249
    @giddaiahkummari2249 4 ปีที่แล้ว

    Hi venkat, I referred so many author's to understand java8 features, but some how I got ur video in the list. I just looked into it, it was just awesome. Thank you for ur efforts

  • @hb9809
    @hb9809 8 ปีที่แล้ว +137

    "If a language does not support backward compatibility, it is DOOMED; we also know if a language supports backward compatibility it's also DOOMED!... and so it's a question really choosing which way you like to be DOOMED!"
    LMAO!

    • @SaiReddyDubbaka
      @SaiReddyDubbaka 7 ปีที่แล้ว +3

      There's a lot of crap in his talk apart from the actual content, which wastes my time. I am better off reading a book than watching his talk.

    • @wesosdequeso8360
      @wesosdequeso8360 7 ปีที่แล้ว +2

      Just upgrade and move on.

    • @test1234tilak
      @test1234tilak 7 ปีที่แล้ว +1

      make your nuts tight!

    • @AniketKapse
      @AniketKapse 5 ปีที่แล้ว

      Venkat is brilliant. Indian minds are like gods.

    • @AniketKapse
      @AniketKapse 5 ปีที่แล้ว +1

      its about perceiving and realizing. Not blind mugging.

  • @esbeesri2303
    @esbeesri2303 4 ปีที่แล้ว

    While explaining the time taken by for loop in finding the value of even number greater than 3 and multiplying the same by 2, Venkat explained as if the for loop goes through all the values before giving the result. The explanation of men in black T shirt, white shoes etc., strengthen this impression. As someone, mentioned a break statement at the end of the for loop as soon as the required number is found, then the for loop will stop functioning. No doubt writing a stream function is easier and clearer than writing a for loop. For loop does take more time than the stream, no doubt, but the explanation needs modification.

  • @akashkadole3034
    @akashkadole3034 2 ปีที่แล้ว

    Great explanation with great examples... Thank u for giving me the imp of lambda & stream.

  • @caiboliang5568
    @caiboliang5568 8 ปีที่แล้ว +2

    think new session required to introduce ide 😁, very impressed. thanks a lot

  • @cookiemonster3699
    @cookiemonster3699 3 ปีที่แล้ว

    Am binge-watching presentations by Venkat.

  • @ramesh040580
    @ramesh040580 8 ปีที่แล้ว +1

    Content and the way it is explained is nice. Thank you.

  • @gauravagrawal7614
    @gauravagrawal7614 3 ปีที่แล้ว

    Really finding it very interesting and glued.

  • @epsilon21001
    @epsilon21001 7 ปีที่แล้ว +1

    He's so awesome, thanks for the talk!

  • @bhadreshagm7692
    @bhadreshagm7692 2 ปีที่แล้ว

    Its really a very good talk!!! The way concepts presented helps understanding it from the core.. Great job sir.

  • @sahilrally4491
    @sahilrally4491 8 ปีที่แล้ว +6

    Brilliant analogy !!!, I wish I could give Super Like or more likes to this talk :-)

  • @ThueringerNeuland
    @ThueringerNeuland 6 ปีที่แล้ว

    This man is really good at talking and explaining

  • @sherif_a
    @sherif_a 8 ปีที่แล้ว +1

    Very dynamic person!!

  • @freezefrancis
    @freezefrancis 5 ปีที่แล้ว

    Venkat , you are simply amazing.. Great talk!

  • @mitulvaghela906
    @mitulvaghela906 4 ปีที่แล้ว +2

    "A person who uses all the tools are called consultants" (1:05) - hahaha, you made my day sir!

  • @diasneto5231
    @diasneto5231 7 ปีที่แล้ว +3

    Really, really, awesome!

  • @edukondalugumma3753
    @edukondalugumma3753 4 ปีที่แล้ว +1

    Amazing explanation. I ever scene this kind explanation

  • @chandrabhoopalr8008
    @chandrabhoopalr8008 3 ปีที่แล้ว

    Wonderful speaker.. amazing analogies

  • @omnipoten8
    @omnipoten8 4 ปีที่แล้ว +6

    1:15:48 "If you gonna take so long and suck , you would rather suck quickly." Lol 😂.. man that was damn hilarious..

  • @walterdiaz2003
    @walterdiaz2003 4 ปีที่แล้ว

    This video is gold.!
    Great Job!!!!

  • @Tikeswarib
    @Tikeswarib 2 ปีที่แล้ว

    What entertaining educational talk, thoroughly enjoyed!

  • @ysatyakrishna
    @ysatyakrishna 7 ปีที่แล้ว

    Fantastic explaination..... 5 Starts

  • @helloworldgamingyt
    @helloworldgamingyt 7 ปีที่แล้ว +2

    The Best java talks i have ever seen...
    gc() those unlikers...

  • @hippiestafarii
    @hippiestafarii 3 ปีที่แล้ว

    And with no shoes ... love u bro !!!

  • @KinGxWolF
    @KinGxWolF 4 ปีที่แล้ว

    Awesome presentation. Truly gifted at explaining concepts

  • @masterprattu
    @masterprattu 4 ปีที่แล้ว

    One of the best java talks!!

  • @szilveszterl
    @szilveszterl 4 ปีที่แล้ว

    Very clear and useful informations, very grateful for them. A question though: isn't also type inferrence when you only have to write List cars = new ArrayList() instead of List cars = new ArrayList()? - you are saying that Java 8 has type inference only for lambda expressions...

  • @VinayakPanchal007
    @VinayakPanchal007 7 ปีที่แล้ว

    Great job Mr. Subramaniam !

  • @abhishekgowlikar
    @abhishekgowlikar 8 ปีที่แล้ว +2

    Good explanation Hats off

  • @anadichar1843
    @anadichar1843 8 ปีที่แล้ว +3

    Lovely talks. the best moment is 34:55 LOL . thank you Venkat

  • @SharanSatkhed
    @SharanSatkhed 6 ปีที่แล้ว

    GREAT!!! Awesome presentation. Thanks a lot...

  • @tryfonmichalopoulos5656
    @tryfonmichalopoulos5656 3 ปีที่แล้ว

    This presentation was magnificent !

  • @aaratprasadchopra3255
    @aaratprasadchopra3255 4 ปีที่แล้ว

    Best Talk Heard Yet!

  • @velganesh30
    @velganesh30 7 ปีที่แล้ว

    You are one of the very best.

  • @alok0412
    @alok0412 9 ปีที่แล้ว +1

    Simply awesome!

  • @balucse019
    @balucse019 8 ปีที่แล้ว +1

    Great respect to you sir 🙏🏽

  • @vikasmessi
    @vikasmessi 5 ปีที่แล้ว

    Brilliant presentation.