~/talk

Writing Solid Ruby Code

Talkat RubyConf 2011 · 2011-09-29..10-01· [ruby, software-architecture]
slides:none on file

Argues that the single best way to raise confidence is repeatable tests and shows concrete tactics: run mutation testing with Heckle to find weak specs, fuzz external inputs, and treat tests as readable specifications; use interactive exploration with pry and the Ruby debugger to inspect state during failures; measure cyclomatic complexity to find the 79+ hot methods; fortify controllers by scoping DB/URL-derived queries to current_user; and ship a tiny helper, readable specs using rspec-given, for clearer examples like the Gilded Rose kata.

AI-written summary · about

  1. 0:00Start
  2. 0:25Disclaimer
  3. 0:52Writing Solid Ruby Code
  4. 1:39How Confident Are You in the Code
  5. 2:55Donald Knuth
  6. 5:51Elements of Programming Style
  7. 6:08Software Tools
  8. 8:55Object Orion
  9. 10:19Refactoring and Extreme Programming
  10. 10:47Writing Solid Code
  11. 14:36Assert Yourself
  12. 20:29Mutation Testing Fuzz Testing
  13. 21:26Testing Advice
  14. 33:20Candy Machine Interfaces
  15. 35:10Realloc
  16. 44:35Nested Conditional Operators
~/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.