~/talk

SOLID Design Principles in Ruby

Talkat Red Dot Ruby Conference 2014 · 2014-06-26..06-27· [ruby]
slides:none on file

Shows concrete Ruby refactorings: starts with one class that fetches parses and saves a feed then extracts FeedFetcher, RSSParser, FeedSaver with live code that runs; replaces if/else parser branching with a parser abstraction and duck typing; demonstrates the Rectangle/Square LSP pitfall and pre/postcondition rules; inverts dependencies by introducing reader/writer abstractions and uses dependency injection; claims applying four of five SOLID rules gives flexible, testable, extensible code and the demos actually work.

AI-written summary · about

  1. 0:00Start
  2. 5:02Why SOLID?
  3. 5:56Single Responsibility
  4. 11:52Liskov Substitution
  5. 17:16Interface Segregation
  6. 22:30Dependency Inversion
~/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.