Collective Code Ownership
I'm not afraid to change my own code. And it's all my own code.
As you work with code, you'll inevitably find that there's behavior you need on objects that you weren't planning to work on. You'll always find that there's commonality between what you're working on and some other object you weren't thinking about when you started. You'll always find behavior on one object that belongs somewhere else. You'll find objects that you were planning to work with that are recalcitrant, somehow resisting your attempts to use them. What should you do?
Well, if you owned those objects, you'd just fix them, wouldn't you? Yuck, this is wrong, you'd think. Let's fix it. Whack, wham, a little refactoring, and now it's all better. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access