
27: Fabulous new mistakes
About this episode
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.
- 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.
More from Giant Robots Smashing Into Other Giant Robots
Sami is joined this week by Zoe Sinclair, owner of Employees Matter and co-founder of This Can Happen, empowering workplace mental health and bridging the gap between work and life. In this episode, S…
Chad and Will sit down to talk about the crafting of thoughtbot’s new AI Policy, and the standardization of techniques and best practices when using AI in their work. From questioning how AI, LLM’s an…
Will returns to the thoughtbot couch this week to chat with Aaron Patterson, Software Engineer at Rails and Shopify. In this episode, Will and Aaron discuss how Shopify has a huge impact in the coding…
Chad and Sami are both on the thoughtbot couch this week (sporting various levels of thoughtbot representation), ready and raring to reminisce about their previous work experience to determine - what,…
Sami is joined this week by Bruce Tate, founder and President of grox.io, a small company of educators, language geeks and authors who want to change the way people teach and learn programming languag…