Let’s refactor some Ruby code
summary
Refactoring examples come from a real, long-lived Open Build Service codebase: move a method from public-with-#nodoc to protected to match usage; replace hash-iteration obfuscation with direct method calls or extract nested-validation logic into a reusable validator; simplify paired-nil checks with Ruby's exclusive-or operator; push for a clearer array union by opening a feature request and PR that adds a union operator to Ruby core and lands in 2.5; report a Rails helper exposing private methods so Rails now warns on exposing private helpers.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:03Ruby and I are turning 25
- 4:15OBS = Open Build Service
- 6:45comments are a bad idea
- 16:09Stand up!
- 27:22GET INVOLVED!








