Re:The Rule of Three (2017)
by earthboundkid on Wednesday April 01, 2020 @09:00PM
(#22755223)
Literally an example from today:
I waffled on whether to deduplicate it or let it be. What was the Obvious Right Choice?
[ Parent
| on HN ]
> I waffled on whether to deduplicate it or let it be. What was the Obvious Right Choice?
What about adding a one line comment that this code can be refactored and improved, and how? But not doing anything immediately.
If you run into this annoying code repeatedly, then, it can be worth taking the time to refactor it.
Re:The Rule of Three (2017)
by earthboundkid on Thursday April 02, 2020 @09:15AM
(#22758544)
Hmm, maybe I should wait until there are N examples of the pattern. Maybe 4 > N > 2 ??? :-D