Podcast
The Giant Robots Smashing into Other Giant Robots podcast is a weekly technical podcast discussing development, design, and the business of software development.
Hosted by Ben Orenstein, who is joined each week by developers and designers from thoughtbot and beyond.
Episode #27
Fabulous new mistakes
Ben Orenstein is joined by Joe Ferris, CTO of thoughtbot. Inspired by a question on Law of Demeter from listener Nathan Long, Joe and Ben (hopefully) answer Nathan's question, and then go on to discuss how the Law of Demeter is a form of duplication, how it effects testing, and how to better architect your report, your view, or your entire system to better obey the Law of Demeter. They also touch upon Rails' try method, how the pain of testing helps guide the code you write, where the Law of Demeter doesn't apply, how people don't refactor their tests, how to productively refactor your tests and avoid wasting time rewriting things, and much more.
Notes & Links
- Law of Demeter, Wikipedia
- Virtuous Code - Avdi Grimm, Demeter: It's not just a good idea. It's the law
- Nathan Long's LoD question
- #try
- Builder pattern, Wikipedia
- The Boy Scout Rule
- Ruby Science
- Fluent interfaces, Stub a chain of methods
Follow @thoughtbot, @joeferris, and @r00k on twitter.
To have your questions answered on the air
Email your questions to info@thoughtbot.com or Tweet to us @thoughtbot.
The Giant Robots Smashing into Other Giant Robots podcast is sponsored by thoughtbot, hosted by Ben Orenstein, edited by Edward Loveall, and produced by Chad Pytel.
