Talks: How Blocks Work in Ruby


Watch OKC Ruby, as Aaron Krauss speaks about Blocks.

Ruby has these things called “blocks,” and they’re one of the key things that make it different from most other programming languages. Often times they take the place of a callback, a lambda function, or even a loop – but they have their own ruby-specific uniquenesses too. In truth, they’re a pretty neat feature that make the language much more intuitive to use – especially for developers new to the language. What exactly is a block, how do you use it, and why would you use it? We’ll answer all these questions in this talk, as well as briefly review Ruby’s other “callable” structures, Lambdas and Procs.

A Genuine Request

Hello there - thank you for reading my post! If you enjoyed it, I'd love it if you considered supporting me. I'm not asking for money or any of that "buy me a beer" crap; I would just love it if you would consider downloading (and using) the Brave browser using my referral code!

The Brave Browser Brave has a focus on security and privacy - and is hardcore against ads. That means that sites like mine wouldn't generate any revenue if you viewed them in Brave - but that's okay; I only make about $10 / month with ads, and that goes right to hosting. If you use my referral code to download Brave and use it for a bit though, I get about $5 with Brave's currency - Basic Attention Token, or BAT for short.

Whether you consider using it or not, I'm just glad you read this post. Thanks again!

Referral Code: https://brave.com/the124