A Benjamin Button History of Ruby
summary
Port a real Ruby 2.7.1 script backward version by version until it still runs: success down to Ruby 1.8.6. Fixes are concrete: remove numbered parameters, replace safe navigation, change keyword arguments to option hashes, swap append alias for push, handle UTF-8 and require rubygems, and add the json gem for old interpreters. Tooling uses Docker to run legacy Rubies, testing uncovers about a dozen one- or two-line changes, and the resulting app runs on every tested Ruby.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:34The story of Benjamin Button, a man who starts aging backwards
- 0:51A very short history of Ruby
- 1:12Too short?
- 15:42Lessons








