Schedule

Masato Ohba
Masato Ohba
  • @ohbarye

Rubyist working on a banking system and a card payment system at SmartBank, Inc.

On-the-fly Suggestions of Rewriting Method Deprecations

This talk is for both library authors and their users - showing how to make method deprecations more manageable through automated code analysis and transformation suggestions. While Ruby's ecosystem has various ways to handle method deprecations, the process of updating deprecated code often remains manual and time-consuming.

What if the world were like this? Library authors would only need to define conversion rules for deprecated methods. Client developers would get patches that they could apply immediately to resolve deprecations by simply running their existing programs. In this talk, I will show how my own tool, Deprewriter make this possible. I'll introduce how to analyze deprecated method calls at runtime and suggests code transformations with Ruby's metaprogramming capabilities.

Through this presentation, I'll explore how Ruby's flexibility can be leveraged to create tools that make deprecation handling more systematic and developer-friendly, potentially paving the way for better