News for hackers. Stuff that matters.
Re:We invested 10% to pay back tech debt; Here's what happened by hamandcheese on Sunday January 15, 2023 @10:06PM (#34396350)
On the flip side, change is far more risky when it affects many callers rather than once page. Whatever time you “wasted” fixing multiple pages might be instead spent validating that the single fix doesn’t produce any unintended consequences.

Simple duplication is probably the least bad form of tech debt I can imagine.

Re:We invested 10% to pay back tech debt; Here's what happened by iopq on Monday January 16, 2023 @02:23AM (#34397867)
You have to test all of the affected pages anyway

the real horror is they have slightly different version since they already had other changes done to them, and I have to understand whether I should merge the functionality, keep it different, etc.

when I have multiple callers it's going to be the same unless you pass in an argument, so that change is self-documenting since it signifies intent