|
|
|
|
|
by elpakal
2665 days ago
|
|
Is tech debt subjective? I've worked on different teams that call anything from wrong grammar in comments to incorrect capitalization of a var name tech debt. Wondering if it follows that more code = more debt because more people have opportunities to disagree about how something was done. Asking for a friend. |
|
But bad comments (even if it's just grammar) and misspelled variables are indeed part of debt. To see whether something is debt or not, imagine it piling up everywhere in the code.
What if 60% of variables in the code base had "incorrect capitalization"? What if most comments had the "wrong grammar"?
It would be more difficult to understand, refactor, and extend the program. Well, that's debt.
Debt can be negligible when it's like one dollar, but it can creep up and accumulate if we let it.
Also think of the "broken window" theory. Sloppy comments here, mistyped vars there, give a signal that "everything goes".
https://en.wikipedia.org/wiki/Broken_windows_theory