Measuring tech debt in tokens instead of engineering hours
A new approach suggests measuring technical debt by counting code tokens rather than estimating engineering hours, offering a more objective, quantifiable metric. This method removes human bias from assessments and makes it easier to track debt reduction over time, though it may not capture the full complexity of architectural issues.
背景メモ
・ソフトウェア開発における「技術負債(Tech Debt)」は、品質を犠牲にして迅速にリリースした結果、後日の修正コストが膨らむ問題を指す。従来は「工数(エンジニア時間)」で見積もられることが多く、正確な測定が難しいとされてきた。
・「トークン」とは、コードをAI(大規模言語モデル)が処理する際の最小単位。この記事が属する文脈では、コードベースの複雑さを「LLMがそれを理解・変更するのに必要なトークン数」で測る新しい指標が提案されている。
・このアプローチは、従来の「人時間」ベースの見積もりよりも客観的で再現性が高く、特にAIエージェントによるコード生成・改修が増えている現在、機械が扱いやすい指標として注目されている。