~/talk

SOLID principles through tests

Talkat LA RubyConf 2014 · 2014-02-06..02-08· [testing, ruby]
slides:none on file

Argues that concrete examples show tests driving SOLID: using TDD with Ruby RSpec and wishful testing leads to extracting responsibilities into classes like ShippingRate and shipping distance, adding an Order method nondigital_items, and writing contract tests with RSpec’s share_examples. Tests reveal design smells, prevent regressions when adding express or same-day methods, and let shipping code become open for extension without modifying existing classes so the approach proves practical.

AI-written summary · about

  1. 0:00Introduction to SOLID
  2. 1:50TDD vs good design
  3. 3:35SOLID principles
  4. 4:38Shipping cost example
  5. 8:51Single responsibility
  6. 13:26Liskov substitution
  7. 17:03Open/closed shipping
  8. 18:49Dependency inversion
  9. 20:55Interface segregation
  10. 22:46SOLID in testing
  11. 24:54Q&A on ActiveRecord
~/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.