Ruby Blocks, Procs, and Lambdas 🦁🐅🐻

  Рет қаралды 17,977

CJ Avilla (cjav_dev)

CJ Avilla (cjav_dev)

Күн бұрын

Пікірлер: 52
@ahmedabdelaalweb
@ahmedabdelaalweb 3 жыл бұрын
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 3 жыл бұрын
So happy to hear that!! Thanks for watching
@willyhorizont8672
@willyhorizont8672 Жыл бұрын
I'm just learning ruby. Your explanation of block, proc, and lambda is very easy to understand. Thank You!
@marcioiherrero
@marcioiherrero 4 ай бұрын
Very good, now I understand perfectly how it works by passing a block as a parameter and how it works with parameter in block. The example of the each method illustrated this functionality well, I was wondering how each of the Array and Hash worked behind the scenes. Thank you!
@idreesibrahim5642
@idreesibrahim5642 2 жыл бұрын
love you boy! great concept you shared. Thanks.
@c_zeroyt2556
@c_zeroyt2556 2 жыл бұрын
I read so many articles and blogs about procs and lamdas but now I understand fully, thanks.
@TheLastLogicalOne
@TheLastLogicalOne 2 жыл бұрын
Thank you, very helpful.
@allicernoch
@allicernoch 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 2 жыл бұрын
Hey! Thanks for watching! Great meeting you at RailsConf. Looking forward to rubyconf already :)
@Ralph_Schumacher
@Ralph_Schumacher 2 жыл бұрын
Great explained, THANKS!
@yashsanghavi5338
@yashsanghavi5338 3 жыл бұрын
I think this is best video on KZbin for understanding blocks, procs and lambdas
@juliantoro8416
@juliantoro8416 2 жыл бұрын
Thanks for the explanation, you explain things very easily
@cjav_dev
@cjav_dev 2 жыл бұрын
Thanks for the kind words! Glad you liked it.
@Andy_a7
@Andy_a7 3 жыл бұрын
the best explanation of how you implement in Ruby the thing known as a "callback function" in JavaScript.
@PervadingPower
@PervadingPower 2 жыл бұрын
Thank you! It's useful and interesting!🖖
@shanmugam_m
@shanmugam_m 3 жыл бұрын
Thanks for making this video. Need more videos about Ruby on Rails!
@cjav_dev
@cjav_dev 3 жыл бұрын
Any rails topics in particular you’d like to see?
@shanmugam_m
@shanmugam_m 3 жыл бұрын
​@@cjav_dev Rails API Request Specs with RSpec for both controller and model. Thanks in advance
@cjav_dev
@cjav_dev 3 жыл бұрын
@@shanmugam_m ooh good one. Will do some rspec content soon :)
@shanmugam_m
@shanmugam_m 3 жыл бұрын
@@cjav_dev wow waiting!
@ES11777
@ES11777 2 жыл бұрын
Awesome vid, bro! I'm The Odin Project student and your video helped me understand procs! Thank you, keep up the good work!
@actrox1
@actrox1 2 жыл бұрын
It's my first time using Ruby and the way you are explaining it, I see everything looks clear.
@aarya9382
@aarya9382 2 жыл бұрын
At 14:30, proc did return the last statement, however, puts returns nil so that’s why the output was like that
@tahamanna3600
@tahamanna3600 9 ай бұрын
Great video, thanks!
@ClaudineyPerbony
@ClaudineyPerbony 3 жыл бұрын
great explanation. simple and concise. thanksssss again!
@abdu5822
@abdu5822 2 жыл бұрын
Thanks for this. Great explanations.
@rachelleggett1634
@rachelleggett1634 3 жыл бұрын
This was really helpful, thank you!
@Amd107
@Amd107 Жыл бұрын
This is an amazing tutorial!
@Rarasinhoo
@Rarasinhoo Жыл бұрын
wow man, you have sooo much ruby knowledge it's overwhelming
@cjav_dev
@cjav_dev Жыл бұрын
I’ve got time on my side. Anyone can do it!
@ladmanoj1435
@ladmanoj1435 3 жыл бұрын
Awesome. Thank you for the video. :)
@cppdog3549
@cppdog3549 2 жыл бұрын
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 2 жыл бұрын
Thanks for watching and thanks for your generosity:)
@YasserKavousi
@YasserKavousi 2 жыл бұрын
great, that was helpful!
@adan9975
@adan9975 3 жыл бұрын
Extra super mega cool block, lambda and proc common uses case. Thanks yo 💪🏻💪🏻💪🏻💪🏻
@SCBiscuit13
@SCBiscuit13 5 ай бұрын
I think there is an issue here. When you are trying to pass a lambda to the 'each' method. The '&' symbol is converting the lambda into the proc on passing vars to the method.
@aualdrich
@aualdrich 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 3 жыл бұрын
Awesome! Thanks for watching!
@larrydanso1129
@larrydanso1129 3 жыл бұрын
Thanks for making this simple to understand
@developerfoe
@developerfoe 2 жыл бұрын
masterpiece...
@dencam
@dencam Жыл бұрын
Missing your Rails tutorials
@oiojin831
@oiojin831 3 жыл бұрын
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?
@emilianomazzaglia7300
@emilianomazzaglia7300 3 жыл бұрын
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!
@FaraazAhmad
@FaraazAhmad 2 жыл бұрын
Bit out of context but are those 4 names related to DC/Marvel heroes by any chance? :)
@cjav_dev
@cjav_dev 2 жыл бұрын
Yep haha good catch
@dencam
@dencam Жыл бұрын
This is metaprogramming, right?
@cjav_dev
@cjav_dev Жыл бұрын
I’ve got another episode about meta programming. This one is more about understanding blocks.
@bradalza98
@bradalza98 3 жыл бұрын
Please make a video on self, it's very confusing.
@TheFranciscomoral
@TheFranciscomoral 3 жыл бұрын
still trying to understand the last one :(
@cjav_dev
@cjav_dev 3 жыл бұрын
Lambdas?
@TheFranciscomoral
@TheFranciscomoral 3 жыл бұрын
@@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
@shashankkestwal4454
@shashankkestwal4454 6 ай бұрын
Please tell me that Rails will not die in the next 5 years.
Rails Performance Tips and Tricks
38:46
CJ Avilla (cjav_dev)
Рет қаралды 2,8 М.
Install Factory Bot with Ruby on Rails
17:55
CJ Avilla (cjav_dev)
Рет қаралды 11 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
An Introduction to Procs, Lambdas and Closures in Ruby
27:13
Peter Cooper
Рет қаралды 45 М.
Blocks, Procs, and Lambdas - Ruby Programming
16:40
Andrew Courter
Рет қаралды 544
RubyConf 2018 - Ruby is the Best Javascript by Kevin Kuchta
35:08
The Ruby On Rails Junior Developer Problem
16:03
Deanin
Рет қаралды 20 М.
Why Are We Afraid to Hire Junior Rails Developers? - Joe Masilotti
27:35
The Rails SaaS Conference
Рет қаралды 2,5 М.
Ruby Trick Shots: 24 Ruby Language Tips and Tricks
27:48
Peter Cooper
Рет қаралды 55 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 188 М.
Ruby Basics: Symbols vs Strings
10:14
GoRails
Рет қаралды 10 М.
RubyConf 2022: In Defense of Ruby Metaprogramming By Noel Rappin
25:29
Ruby Programming | In One Video
36:36
Giraffe Academy
Рет қаралды 160 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН