Skip to content

Debug Hard: Ruby String Library Methods and Underlying C Implementations

Photo of Rashaun Snuggs Stovall
Hosted By
Rashaun Snuggs S.
Debug Hard: Ruby String Library Methods and Underlying C Implementations

Details

At this time, the Ruby String library 'reverse' method is fairly stable. However, what if the underlying C implementation had a bug? What if it produced unexpected results with certain types of inputs? e.g. strings with unicode characters. How would you catch and fix such a bug? How would you explain the unexpected results?

In this talk, we'll take a close look at how Ruby's String library 'reverse' method works. In order to catch a potential underlying bug in this method, we need to understand its implementation. Where exactly is the source code? Does it have adequate unit tests? Put on your debugger hats and join me explore some powerful techniques to isolate and fix such bugs. This talk will add value to your debugging tool belt and improve your confidence in finding/fixing problems that lay underneath the current (Ruby) application programming language.

Vishal Chandnani

Photo of NYC.rb group
NYC.rb
See more events
XO Group
195 Broadway, 24th Floor, New York, NY 10007 · New York, NY