~/talk

Debugging Rails Itself

Talkat RailsConf 2018 Β· 2018-04-17..04-19Β· [ruby-on-rails]

Explains the exact process to fix a bug in Rails from report to committed patch: create a reproducible single-file test (only Rails plus sqlite/pg), use git bisect (about seven steps) to find the offending commit, inspect code paths with prints, pry or the p-method, and use git context instead of blame to see intent. Shows when a behavior is a bug (differs from docs/public API), how to find the introducing commit, and how to avoid regressing prior fixes.

AI-written summary Β· about

  1. 0:00Intro
  2. 0:55Who am I
  3. 1:14Meet Ruby
  4. 1:34Anybody can work on Rails
  5. 2:00Its not scary
  6. 2:19Techniques
  7. 2:32What is a bug
  8. 3:14At least surprise
  9. 3:42Not supported usage
  10. 6:24Reproducible Test Case
  11. 6:39Active Record
  12. 7:21Minimal Isolated Environment
  13. 7:56The Test
  14. 9:44What Next
  15. 10:12Bug on Table
  16. 10:36bisect
  17. 11:47bisecting
  18. 12:46contribute
  19. 13:13thanks a lot
  20. 13:30bug report
  21. 13:54legacy code
  22. 14:34method method
  23. 15:50other methods
  24. 17:35callbacks
  25. 19:13inspect
  26. 19:26getblame
  27. 19:52recontext
  28. 23:41go home
  29. 23:54find a pair
  30. 24:17anyone can work on Rails
  31. 24:34my wife is giving a talk
  32. 24:51thank you Shopify
  33. 25:14Ruby Stickers
~/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.