SOLID Design Principles in Ruby
summary
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
chapters (6)
- 0:00Start
- 5:02Why SOLID?
- 5:56Single Responsibility
- 11:52Liskov Substitution
- 17:16Interface Segregation
- 22:30Dependency Inversion







