Sandi Metz argues that hidden assumptions in code are missing concepts, and shows how to name and expose them so code is easier to understand and change. It covers null objects and messages in Ruby.
Why Hacker News points people here: HN recommends it as a funny, smart and well-constructed talk on abstraction, duplication and object-oriented design.
“as a talk it is fantastic - funny, smart, well put together.”HN comment, 2024
“Sandi Metz has an excellent talk touching on this topic.”
Sandi Metz on wrong abstractions versus duplication
Full comment
Couldn't agree more. Sandi Metz has an excellent talk touching on this topic. Developers exaggerated willingness to keep things DRY and elaborates a bit on why: it's one of the easiest things for a not-so-experienced developer to identify and one of the easiest things to teach. Edit: One of the best quotes from that talk is (paraphrased): "The wrong abstraction is a lot more expensive than duplicated code". this video
Strongly recommendscrabmusketNov 2024
“as a talk it is fantastic - funny, smart, well put together.”
Short intro to Sandi Metz's style; funny, smart, well constructed
Full comment
I'd like to mention that despite OOP being in the title, I thought this book had a lot to teach that isn't specific to OOP architecture or OOP languages. Really, I think the star of the show is TDD and refactoring. For a short intro to Sandi's style and approach, I always recommend this 35min talk: this video Aside from any specifically educational content, as a talk it is fantastic - funny, smart, well put together.
RecommendsnewtscamanderJan 2017
“it explains how shared behavior works without code duplication and why people tend to mess it up.”
Explains shared behavior without duplication and common mistakes
Full comment
The premise is the introduction is wrong. "so before we have written a single program in our language, before we know whether shared behaviour will be important in the applications that will be written in it" read the POODR book, or watch this this video it explains how shared behavior works without code duplication and why people tend to mess it up.
Cites itprofalseidolMar 2019
“Here's one talk about 'message' in Ruby”
Talk about messages in Ruby
Full comment
Here's one talk about 'message' in Ruby: RailsConf 2015 - Nothing is Something this video But to me, this simply looks like Functional Programming done in an OOP mess.
Cites itValentinTrinqueMar 2024
“As Sandy Metz is used to say”
Metz talk on null objects
Full comment
You do have another solution that can lower the amount of conditions: Null Objects. These don’t fit every use cases, but they can allow you to express what’s missing, or not defined, or empty, and avoid nil pointers dereference or conditions to check the state. As Sandy Metz is used to say « Nothing is Something »[0] 0: this video