13 ms·
Hah! I just had a friend drop a reference to Chesterton's Fence on twitter the other day. I think that this is definitely a great point. Time boxing and code re
by mooreds 6y ago
Hah! I just had a friend drop a reference to Chesterton's Fence on twitter the other day. I think that this is definitely a great point. Time boxing and code review and cultural guidance are probably the best defense.
But I think a valid thing to do if a newer dev doesn't understand a section of code is to ask why and see if there are steps short of refactoring to improve that (comments, docs). What I hate and strive to avoid is code that is "abandon hope, all ye who enter" territory--totally a mess but "works" and no one wants to touch it.
All in all I think we agree, drive by refactoring is the flip side of that and can lead to subtle bugs a year from now. It's a balance.
EDIT: I'll update the post to reflect this discussion. Thanks!
- uberman 6y agoI really enjoyed this discussion and will follow your blog. Thanks.