~/talk

Refactoring: The ASMR of Programming Talks

Talkat Blue Ridge Ruby 2024 · 2024-05-30..05-31· [developer-experience, ruby]
slides:none on file

A messy util class becomes a focused RecipientIdResolver with instance state and two explicit public methods instead of a symbolic option, reducing ternary logic and duplicated empty-string multiplications. The refactor pairs small RSpec tests (happy paths only) with FactoryBot fixtures, introduces early returns and readable private checks, and leaves production code unchanged as a teaching artifact. Claim: clearer public surface and easier future reuse; result: simpler code paths and better bug visibility.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Refactoring feels like ASMR
  3. 2:20Live refactoring begins
  4. 5:36Adding tests to legacy code
  5. 6:41Renaming class for clarity
  6. 7:43Extracting form data
  7. 8:25Simplifying public interface
  8. 10:09Breaking down symbol argument
  9. 11:14Refactoring resolve method
  10. 12:19Combining similar methods
  11. 13:23When to stop
  12. 15:10Emotional impact of refactoring
  13. 17:57Call to action
  14. 19:21Code smells and recipes
  15. 20:45Developing refactoring instincts
  16. 21:48Avoiding greenfield trap
  17. 22:50Recommended resources
~/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.