~/talk

Code Smells: Your Refactoring Cheat Codes

links:none on file
slides:none on file

A usable backend that takes UDP lines and posts to Google gets rewritten from a 30‑line script into discrete objects while tests keep it safe: manual checks with netcat and a real phone confirm behavior, then RSpec + Webmach mock the Google API for automated regression. Key moves include replacing the script with a method object, extracting worker/job and UDP server/client roles, using shellwords tokenization and a null‑job to avoid nils, and the refactored system still works.

AI-written summary · about

  1. 0:00Intro
  2. 0:38Code smells are heuristics for refactoring
  3. 0:55Our design communicates to us through resistance.
  4. 1:09This resistance is valuable feedback
  5. 6:12Code Smell Long Method
  6. 7:34Replace Method with Method Object
  7. 8:17Extract Method
  8. 9:20Code Smell Divergent Change
  9. 12:23Code Smell Inappropriate Intimacy
  10. 15:37Code Small Case Statement
  11. 16:39Replace Conditional with Polymorphism
  12. 21:22Data Clumps
  13. 23:18Feature Envy
  14. 24:25Code Smell Same Name, Different Meaning
  15. 25:40Code Smell Primitive Obsession
  16. 26:40Shellwords
  17. 28:04Nil Checks
  18. 28:50Introduce Null Object
~/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.