~/talk

Maintaining Balance while Reducing Duplication: Part II

Talkat GoRuCo 2012 · on Saturday, 2012-06-23· [ruby, developer-experience]
links:none on file
slides:none on file

Argues that DRY means a single authoritative piece of knowledge, not avoiding repeated characters, and shows concrete refactorings: using extract method to avoid cross-service coupling, pulling up behavior to a superclass vs introducing a template method to avoid hidden state, and comparing ActiveRecord migrations/validations mismatches with a DataMapper-style single-definition approach; demonstrates a 15-route example and RSpec/Cucumber practices where over-DRYing harms readability and test isolation.

AI-written summary · about

  1. 0:00Introduction to DRY
  2. 1:00Defining authoritative knowledge
  3. 2:05Active Record limitations
  4. 3:24Validation and ambiguity
  5. 5:23Migrations and structure
  6. 6:30Data Mapper and centralization
  7. 7:29Testing and RSpec
  8. 8:27Executable documentation
  9. 10:24Code smells and duplication
  10. 12:36Extracting methods correctly
  11. 14:28Refactoring and naming
  12. 15:55Template method patterns
  13. 19:23Abstraction levels
  14. 21:47When not to be DRY
  15. 25:05Balancing complexity and DRY
  16. 28:26Testing strategies
  17. 35:38Test helpers and Q&A
~/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.