~/talk

SOLID 101: A Review for Rubyists

slides:none on file

Quick practical review of SOLID for Ruby: shows small Ruby examples (kickball Player/Team), points out avoid AR fat models and how formatting leaks responsibilities, demonstrates a concrete refactor by extract formatter into a RosterPrinter and then inject printer so tests stop breaking when output changes, uses subclassing to honor Open/Closed, flags a Liskov bug where subclasses return inconsistent types (string vs hash), and argues these moves make code more testable, less brittle, and easier to extend.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:04Philosophy of design
  3. 7:07Defining objects
  4. 10:14The SOLID principles
  5. 23:22Applying principles effectively
  6. 27:00Iterative engineering
~/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.