Hacker News new | ask | show | jobs
by entrope 12 days ago
I would suggest that if you have two similar copies of sufficiently complex logic, it's fair to combine them after they have been stable for a long time. My gut feeling is that the threshold should be a function of complexity times stability in hours worked (on that part of the code), because the expected maintenance cost of duplicated code scales with its complexity.