RailsConf 2014 - All the Little Things by Sandi Metz
Channel:Confreaks · Length:38:47 · Published:2014-05-21 · Views:190746
Summary
Sandi Metz takes an ugly section of conditional code and refactors it into a few simple objects, bridging object-oriented theory and practice. The talk includes her take on the Gilded Rose refactoring kata and the idea that duplication is cheaper than the wrong abstraction.
Why HN recommends it
HN treats it as a top-tier programming talk for learning refactoring and for the wrong-abstraction principle, recommended repeatedly over a decade.
this talk captures all the important values in a single example. — HN, 2016
Python, Ruby & scripting languages · Software architecture & design · Testing, debugging & developer tools
Subtitles (excerpt)
(jazzy music) Sandi:So you'd think that writing object-oriented code was hard. All you have to do is look at our apps, alright? We mean well, and we write code that almost always inevitably we eventually come to hate it. And the more I think about this, these days, somehow my job is to think about how to write better code. And the more I think about it, the more I think that all of the problems we cause have the same simple solution, and that when people ask me now how to write object-oriented code, I give them one small piece of advice. I say make smaller things, that's all it is. Make smaller classes, make smaller methods, and let them know as little about each other as possible. And lately I've been on a quest. I've had this obsession for the last couple of months, and it's been about conditionals. There's a lot of code out there with nasty conditionals in it, and I've been wondering, when should I replace conditionals with small objects, and how should I do this, and what would happen to my code if I do? And I was really confident in Miami in November and I inflicted this obsession upon Jim Weirich, whom some of you probably knew, and he pointed me in the direction of the Gilded Rose.
On Hacker News
One of the many great takeaways from Sandi Metz's talk at Railsconf 2014: "Duplication is far cheaper than the wrong abstraction." [VIDEO] Worth watching in its entirety, but the quote is from ~13:59 in that video. — wilkystyle, 2025-08
"Duplication is far cheaper than the wrong abstraction." — Sandi Metz ( [VIDEO] ) This talk by her is one of my favorites ever. Her ideas definitely made me a better programmer. — abvdasker, 2020-01
I'm a huge proponent of this concept. The goal is to be able to build and iterate as fast as possible. Most of this is achieved when new folks can step in and understand the code right away. Needless abstraction slows this down and makes the app more brittle to changes in response to customer/client inputs. Sandi Metz had an awesome presentation about this during a Rails Conf. "Duplication is far… — chrischattin, 2019-01
Define "technical". But when it comes to programming I always enjoy Sandi Metz's talks. I can highly recomend this talk she made at the RailsConf in 2014, about taking an ugly beast of code and turning it to something more digestable and beautiful [VIDEO] — da_murvel, 2018-10
These talks are a little skewed to the game/high performance programming side of the art, but still very interesting in general. Of the ones I've already seen I really like Mike Acton's talk. Since this has become such a nice thread some additions I'd add: * Sandi Metz going through the Gilded Rose or "All the small things" [VIDEO] I already subscribed to her programming style and the general Rub… — tinco, 2016-12
Related videos
- 2013 Sci-Tech Awards: Matt Pharr, Greg Humphreys and Pat Hanrahan · Oscars · 3:51
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Dr. Gabor Maté — Trauma, Addiction, Ayahuasca, and More · Tim Ferriss · 2:23:44
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- Everything you think you know about addiction is wrong | Johann Hari | TED · TED · 14:42
- Genius Bar caught ripping customer off ON CAMERA by CBC News · Louis Rossmann · 12:44
- George Lakoff: Moral Politics · University of California Television (UCTV) · 58:57
- Do schools kill creativity? | Sir Ken Robinson | TED · TED · 20:03
- Functional architecture - The pits of success - Mark Seemann · NDC Conferences · 1:00:10
- Ruby Conf 12 - Boundaries by Gary Bernhardt · Confreaks · 45:55
- The Part of History You've Always Skipped | Neoslavery · Knowing Better · 1:16:56
- Margin Call (2011) - Senior Partners Emergency Meeting [HD 1080p] (Re-Upload / Audio Fixed) · Extractor · 9:48
- Your Brain Thinks Your Whole Home Is One Room · CGP Grey · 10:58
- Power Satellites & Space Based Solar Power · Isaac Arthur · 30:14
- Milton Friedman - The Negative Income Tax · LibertyPen · 14:45
- Joe Rogan Experience #1109 - Matthew Walker · PowerfulJRE · 1:55:32
- Programming is terrible—Lessons learned from a life wasted. EMF2012 · tef ebooks · 1:06:44
- Hammock Driven Development - Rich Hickey · ClojureTV · 39:49
- Emacs Rocks! Episode 13: multiple-cursors · emacsrocks · 3:56