~/talk

So You Want to Start Refactoring?

Talkat RailsConf 2015 · 2015-04-21..04-23· [ruby-on-rails, developer-experience]
slides:none on file

Practical refactoring in Rails focuses on concrete moves: beef up test coverage and keep tests unchanged during the refactor so they stay a safety net, annotate and rename confusing bits (turn single-letter vars into meaningful names), simplify nested conditionals, and move front-end validation back to the client when appropriate. Use tools like RuboCop and Reek, commit frequently, break work into small deployable chunks, and expect a small signup-controller cleanup to snowball into broader changes once duplicated checks and unclear params get clarified.

AI-written summary · about

  1. 0:00Intro
  2. 0:36About Me
  3. 2:08What is refactoring
  4. 3:33Why refactor
  5. 5:55Trust your gut
  6. 6:54Warning signs
  7. 7:40Testing
  8. 9:26Prepare
  9. 13:18Annotation
  10. 16:01Code messes
  11. 17:25Cleaning up code
  12. 21:29Case study
  13. 22:26Annotations
  14. 26:39Other Tips
  15. 28:30Two Ways to Refactor
  16. 30:41Things to Remember
~/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.