News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by partyboat1586 on Sunday January 12, 2020 @06:23AM (#22025746)
I think about it in terms of bugs. If your abstraction causes a bug, I have to go in and work out wtf your wonky abstraction is doing and also risk breaking other cases. If there are 6 duplications and there is a bug because one of them is missing a change applied to all of them, that takes 5 mins to fix and risks breaking nothing.

When you make an abstraction think not only "Will this create bugs?" But also "If this abstraction does create bugs will they be easy to identify and fix?".

There are no comments on this comment yet.