Ruby Blocks, Procs, and Lambdas 🦁🐅🐻

Sdílet
Vložit

Komentáře • 49

  • @ahmedabdelaalweb
    @ahmedabdelaalweb Před 2 lety +18

    I've tried to understand these terms for a long time, and every time I walked away feeling like I get it but I can't put my finger on what's missing. You helped me fully understand them and made it very easy to follow. Thank you very much! I'm truly grateful.

    • @cjav_dev
      @cjav_dev  Před 2 lety +4

      So happy to hear that!! Thanks for watching

  • @willyhorizont8672
    @willyhorizont8672 Před 6 měsíci +2

    I'm just learning ruby. Your explanation of block, proc, and lambda is very easy to understand. Thank You!

  • @c_zeroyt2556
    @c_zeroyt2556 Před 2 lety +1

    I read so many articles and blogs about procs and lamdas but now I understand fully, thanks.

  • @ClaudineyPerbony
    @ClaudineyPerbony Před 2 lety +1

    great explanation. simple and concise. thanksssss again!

  • @actrox1
    @actrox1 Před rokem

    It's my first time using Ruby and the way you are explaining it, I see everything looks clear.

  • @TheLastLogicalOne
    @TheLastLogicalOne Před rokem

    Thank you, very helpful.

  • @yashsanghavi5338
    @yashsanghavi5338 Před 2 lety +1

    I think this is best video on CZcams for understanding blocks, procs and lambdas

  • @allicernoch
    @allicernoch Před rokem +2

    Just pulled up this video to learn about procs and was like "Hey, I know him!" We sat at a table together during lunch at RailsConf. Excited to watch more of your videos, this one was great!

    • @cjav_dev
      @cjav_dev  Před rokem

      Hey! Thanks for watching! Great meeting you at RailsConf. Looking forward to rubyconf already :)

  • @tahamanna3600
    @tahamanna3600 Před 2 měsíci

    Great video, thanks!

  • @rachelleggett1634
    @rachelleggett1634 Před 2 lety +2

    This was really helpful, thank you!

  • @idreesibrahim5642
    @idreesibrahim5642 Před rokem

    love you boy! great concept you shared. Thanks.

  • @Ralph_Schumacher
    @Ralph_Schumacher Před rokem

    Great explained, THANKS!

  • @PervadingPower
    @PervadingPower Před rokem

    Thank you! It's useful and interesting!🖖

  • @Andy_a7
    @Andy_a7 Před 2 lety +1

    the best explanation of how you implement in Ruby the thing known as a "callback function" in JavaScript.

  • @abdu5822
    @abdu5822 Před rokem

    Thanks for this. Great explanations.

  • @ES11777
    @ES11777 Před rokem

    Awesome vid, bro! I'm The Odin Project student and your video helped me understand procs! Thank you, keep up the good work!

  • @ladmanoj1435
    @ladmanoj1435 Před 2 lety

    Awesome. Thank you for the video. :)

  • @larrydanso1129
    @larrydanso1129 Před 2 lety

    Thanks for making this simple to understand

  • @dencam
    @dencam Před rokem +1

    Missing your Rails tutorials

  • @Amd107
    @Amd107 Před 4 měsíci

    This is an amazing tutorial!

  • @YasserKavousi
    @YasserKavousi Před rokem

    great, that was helpful!

  • @adan9975
    @adan9975 Před 2 lety

    Extra super mega cool block, lambda and proc common uses case. Thanks yo 💪🏻💪🏻💪🏻💪🏻

  • @shanmugam_m
    @shanmugam_m Před 2 lety +2

    Thanks for making this video. Need more videos about Ruby on Rails!

    • @cjav_dev
      @cjav_dev  Před 2 lety +1

      Any rails topics in particular you’d like to see?

    • @shanmugam_m
      @shanmugam_m Před 2 lety +3

      ​@@cjav_dev Rails API Request Specs with RSpec for both controller and model. Thanks in advance

    • @cjav_dev
      @cjav_dev  Před 2 lety +1

      @@shanmugam_m ooh good one. Will do some rspec content soon :)

    • @shanmugam_m
      @shanmugam_m Před 2 lety +1

      @@cjav_dev wow waiting!

  • @developerfoe
    @developerfoe Před rokem

    masterpiece...

  • @emilianomazzaglia7300
    @emilianomazzaglia7300 Před 2 lety +1

    A little comment when you explain the return behavior of procs, procs returns from the context that it was call, so it will return the each execution :D
    Everything else was really good!

  • @juliantoro8416
    @juliantoro8416 Před rokem

    Thanks for the explanation, you explain things very easily

    • @cjav_dev
      @cjav_dev  Před rokem

      Thanks for the kind words! Glad you liked it.

  • @cppdog3549
    @cppdog3549 Před rokem +1

    Just amazing. Love this tutorial. It's very clear, and the examples are awesome. Thank you for taking the time and creating this video and helping educate us. Warm thank you from Erbil, Iraq. You should visit by the way, we would love to have you here. My house is open for you 24/7.

    • @cjav_dev
      @cjav_dev  Před rokem

      Thanks for watching and thanks for your generosity:)

  • @Rarasinhoo
    @Rarasinhoo Před rokem +1

    wow man, you have sooo much ruby knowledge it's overwhelming

    • @cjav_dev
      @cjav_dev  Před rokem

      I’ve got time on my side. Anyone can do it!

  • @aualdrich
    @aualdrich Před 2 lety +3

    Great explanation! Long time rubyist but I've never used/properly understood procs and lambdas like I should have. This helped a lot. Thanks!

    • @cjav_dev
      @cjav_dev  Před 2 lety

      Awesome! Thanks for watching!

  • @aarya9382
    @aarya9382 Před rokem

    At 14:30, proc did return the last statement, however, puts returns nil so that’s why the output was like that

  • @oiojin831
    @oiojin831 Před 2 lety

    thanks for the video,
    how can you call each method with block ??
    each(students) do ...
    dont your block has to be iside of the parenthesis?

  • @FaraazAhmad
    @FaraazAhmad Před 2 lety

    Bit out of context but are those 4 names related to DC/Marvel heroes by any chance? :)

  • @bradalza98
    @bradalza98 Před 2 lety

    Please make a video on self, it's very confusing.

  • @dencam
    @dencam Před 10 měsíci

    This is metaprogramming, right?

    • @cjav_dev
      @cjav_dev  Před 10 měsíci

      I’ve got another episode about meta programming. This one is more about understanding blocks.

  • @TheFranciscomoral
    @TheFranciscomoral Před 2 lety

    still trying to understand the last one :(

    • @cjav_dev
      @cjav_dev  Před 2 lety

      Lambdas?

    • @TheFranciscomoral
      @TheFranciscomoral Před 2 lety

      @@cjav_dev tks for answering ! No , the logic inside the block to return the values ordered by how much times they appear in the array