~/talk

Unreliable Narrators And Legacy Code

Talkat RubyConf Portugal 2015 · 2015-09-14..09-15· [legacy-modernisation]
links:none on file
slides:none on file

A seven‑year Rails codebase shows 102 different authors via git blame and contains surprises like a save_with_weak_validations helper, metaprogrammed method definitions moved during a refactor, weird magic number 13 usage, and a test that creates 100 users and mutates a test‑only hash key. The concrete claim is that explicit, readable tests act as the authoritative documentation — tests as travelers guide — and practical advice is to prefer clear, repeated setup over brittle abstractions and to call authors for history before distrusting code.

AI-written summary · about

  1. 0:00Introduction to unreliable narrators
  2. 1:11Legacy code challenges explained
  3. 7:49Defining unreliable narrators
  4. 10:24Examples of unreliable narrators
  5. 14:21Types of unreliable narrators in code
  6. 19:03Unreliable worlds in code
  7. 21:10Using git blame effectively
  8. 23:44Writing reliable tests for legacy code
  9. 25:58Conclusion and takeaways
~/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.