~/talk

Let’s refactor some Ruby code

Talkat EuRuKo 2018 · 2018-08-24..08-25· [ruby]
slides:none on file

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

  1. 0:00Start
  2. 3:03Ruby and I are turning 25
  3. 4:15OBS = Open Build Service
  4. 6:45comments are a bad idea
  5. 16:09Stand up!
  6. 27:22GET INVOLVED!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.