News for hackers. Stuff that matters.
Re:The Wrong Abstraction (2016) by goto11 on Sunday July 05, 2020 @02:14PM (#23740654)
I dislike any programming rule which includes a number.

The issue is whether sections of similar code implement the same idea or just happen to be accidentally similar. The number of instances does not really matter. If you have 100 lines of code which are almost the same two places in the program, then you should unify sooner rather than later, before they are allowed to diverge.

Re:The Wrong Abstraction (2016) by jpswade on Sunday July 05, 2020 @05:07PM (#23742000)
Rules are great because they can be broken, if you know when to do so.