On-the-fly Suggestions of Rewriting Method Deprecations


On-the-fly Suggestions of Rewriting Method Deprecations
Masato Ohba • Matsuyama, Ehime, Japan • Japanese • Talk

Date: April 18, 2025
Published: Tue, 27 May 2025 00:00:00 +0000
Announced: unknown

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, makes this possible. I'll introduce how to analyze deprecated method calls at runtime and suggest 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.

https://rubykaigi.org/2025/presentations/ohbarye.html

RubyKaigi 2025

Explore all talks recorded at RubyKaigi 2025
ahogappa
Koichiro Eto
Aaron Patterson
Shugo Maeda
Samuel Giddins
Maxime Chevalier-Boisvert
Mari Imaizumi
Yukihiro "Matz" Matsumoto
+66