Blocks, Procs, and Lambda Functions in Ruby

  Рет қаралды 4,075

Deanin

Deanin

Жыл бұрын

Today we're gonna be taking a look at Blocks, Procs, Lambda functions, Arrow Functions, and ampersands in Ruby!
Checkout my course(s) at: learn.deanin.com
Source:
gist.github.com/Deanout/ef0fc...
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
#Deanin #Software #Programming

Пікірлер: 10
@Deanin
@Deanin Жыл бұрын
Quick one that ended up being pretty much a pure Ruby tutorial, so I thought I'd cut out Rails entirely. Hope it helps! And let me know if you'd like to see more tutorials for languages like Ruby or JS as a whole, as opposed to Rails specific videos.
@dc366
@dc366 Жыл бұрын
Yes definitely would like to see more Ruby and JS code. All your content is awesome. Also switching between Ruby, JS and in my case Python becomes a challenge. I tend to forget the syntax.
@juanfelipeaguilarmorales9797
@juanfelipeaguilarmorales9797 2 ай бұрын
Thank you very much, your yield explanation is the best that I found, I don't know why I did not get it befor but your explanation is really cool.
@nekogato8990
@nekogato8990 Жыл бұрын
Great video for me, a beginner, very concise, very helpful
@slimakfoto
@slimakfoto Жыл бұрын
As always awesome pack of knowledge about ruby! Thanks a lot!
@azizdevfull
@azizdevfull Жыл бұрын
Amazing : )
@dc366
@dc366 Жыл бұрын
Great video. Thank you for explaining. Can you make a video series on rspec and factory bot please?
@kirk7784
@kirk7784 Жыл бұрын
This is awesome and it improved my understanding of these concepts. But when would you use a lambda vs a proc? They seem so similar.
@MarceloAlarcon-tx6qe
@MarceloAlarcon-tx6qe 7 ай бұрын
When you need to control the argument that you pass, you should use lambda otherwise use proc.
@mycode0
@mycode0 Жыл бұрын
Thank you for doing this,but in my opinion people already know the syntax if you want to be useful for beginners you should try to explain what is a block, lambda ect. The syntax of things can be Googled for 10 seconds no one needs to watch 12 minute videos for this. Try to explain what does things do when to use one and not the other put short description of what they are and so on. Again thank you for even doing ruby tutorials in this case I just don't see what someone can learn from this video other than the syntax of something, but in this case they could also just Google it. That's just my opinion of course, if I didn't know what a lambda is or block is this video would not have helped me understand that at the end.
Ruby Blocks, Procs, and Lambdas 🦁🐅🐻
25:42
CJ Avilla
Рет қаралды 16 М.
Comprehensive Guide to Modules in Ruby 3
20:57
edutechional
Рет қаралды 8 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 25 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 17 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
Turbo Frame Modals (Popups) | Ruby On Rails 7 Tutorial
12:49
Blocks, Procs, and Lambdas - Ruby Programming
16:40
Andrew Courter
Рет қаралды 457
How I Would Learn To Code (If I Could Start Over)
13:43
Namanh Kapur
Рет қаралды 7 МЛН
Ruby Programming | In One Video
36:36
Giraffe Academy
Рет қаралды 154 М.
5 Secrets to Becoming a Badass Ruby on Rails Developer
28:01
Mix & Go
Рет қаралды 21 М.
The Kaminari Gem in Ruby on Rails 7
10:58
Deanin
Рет қаралды 1,6 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 25 МЛН