RubyConf 2024 Breaking nil to fix bugs: experimental approach by Enrique Mogollan

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



Duration: 0:00
5 views
1


In Ruby, encountering `nil` is inevitable and often leads to frustrating bugs and NoMethodError exceptions. While `nil` is a crucial part of Ruby's design, it can be the source of elusive and hard-to-diagnose issues in your codebase. This talk explores an unconventional and experimental approach to debugging by "breaking" the nil object.
How will we debug bugs?
extending the NilClass
customizing method_missing
creating methods dynamically with the previous options

This is probably the wrong solution. Don't try this in production. However, we'll find bugs and it will be fun!




Other Videos By Confreaks


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 Breaking nil to fix bugs: experimental approach by Enrique Mogollan
2024-11-10Modern Development Workflows in LabVIEW by Greg Richardson. GDevCon N.A. 2024
2024-11-10Modularity As It Applies to Everything by Brian Powell. GDevCon N.A. 2024
2024-11-10GDevCon N.A. - 4x7 G AI Assistant for LabVIEW (Project Code Name) by Jim Kring
2024-11-10Using LabVIEW To Do Totally Legal Things Online by Eric Stach. GDevCon N.A. 2024
2024-11-10Your LabVIEW Code Is a Work of Art... But I Can't Read It by Darren Nattinger. GDevCon N.A. 2024
2024-11-10Nx24x7: Challenges and Considerations When Designing a Life... by Katya Prince. GDevCon N.A. 2024
2024-11-10Using LabVIEW and LoRa for Long-Distance Status and Control by Matthew Harrison. GDevCon N.A. 2024
2024-11-10GDevCon N.A. 2024 - 1x7 Summer of LabVIEW 2024 by Derrick Bommarito
2024-11-10Innovate, Validate, Elevate: LabVIEW Quality Paradigm by Kevin Shirey. GDevCon N.A. 2024
2024-11-10Decoupling in Practice - How Good Software Engineering Can Save... by Allen Smith.GDevCon N.A. 2024