RubyConf 2024 Names from a hat by Murray Steele

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=gJXEsnGELGo



Duration: 0:00
7 views
1


As an organiser of a local ruby meetup group I occasionally need to pluck names from a hat to announce winners of raffles or randomise the order of speakers for a particularly packed agenda. We can do that with actual bits of paper from a hat, but being a rubyist I'm much more interested in writing little ruby scripts to do it for me.

We'll start with the obvious technique of using `Array#sample` but as it's not very interesting or satisfying to write we'll go a bit further. We'll look at interactivity using `Fiber`, and several attempts at animation using _why's Shoes framework. Finally, we'll explore my magnum opus of a terminal-based dungeon crawler (like nethack and rogue) written in ruby that introduces a human element of randomisation alongside the computer element.




Other Videos By Confreaks


2025-01-15RubyConf 2024 Ruby Hack Challenge by Koichi Sasada and Core team
2025-01-15RubyConf 2024 Ractor on Ruby 3.4 by Koichi Sasada
2025-01-15RubyConf 2024 ACIDic Jobs: Scaling a resilient jobs layer by Stephen Margheim
2025-01-15RubyConf 2024 The state of Ruby dev tooling by Vinícius Stock
2025-01-15RubyConf 2024 Lightning Talks
2025-01-15RubyConf 2024 Chaos Engineering on the Death Star by Sara Jackson
2025-01-15RubyConf 2024 Building JRuby: How We Implement Ruby on the JVM by Charles Nutter & Thomas Enebo
2025-01-15RubyConf 2024 Detecting and classifying object images using ruby by Fabio Leandro Janiszevski
2025-01-15GS D3 01 Brandon Weaver 1
2025-01-15RubyConf 2024 Going Postel by Scott Werner
2025-01-15RubyConf 2024 Names from a hat by Murray Steele
2025-01-15RubyConf 2024 Keynote: Yukihiro "Matz" Matsumoto
2025-01-15RubyConf 2024 Keynote by Nadia Odunayo
2025-01-15RubyConf 2024 Who Wants to be a Ruby Engineer? by Drew Bragg
2025-01-14RubyConf 2024 Supporter Talk by Cisco: Catching Waves with Time-Series Data by Liz Heym
2025-01-14RubyConf 2024 Sounds, Synths, and Sonic Pi! Oh My! by Herve Aniglo
2025-01-14RubyConf 2024 Do LLMs dream of Type Inference? by Shunsuke "Kokuyou" Mori
2025-01-14RubyConf 2024 Welcome with Kinsey Durham Grace & Jim Remsik
2025-01-14RubyConf 2024 Streaming over the web with modern Ruby by Shannon Skipper
2025-01-14RubyConf 2024 Workshop: Building the Unbreakable Code Whose Breaking Won WWII by Aji Slater
2025-01-14RubyConf 2024 Closing Remarks with Kinsey Durham Grace & Jim Remsik