Re:Keeping track of technical debt in source code
by Johnie on Friday April 14, 2017 @12:38PM
(#14115438)
At Google, the team that I worked on required the format `// TODO(name): [Tracking Bug#] comment `
In other places, I've seen just blanket `// TODO: comment` is pretty bad. There's no accountability and also you don't know when it's obsolete.
Re:Keeping track of technical debt in source code
by hinkley on Saturday April 15, 2017 @02:04AM
(#14119623)
Sometimes the TODO message doesn't make enough sense, and having the author gives you who to ask for context.
Re:Keeping track of technical debt in source code
by koverstreet on Saturday April 15, 2017 @07:47AM
(#14120382)
That's what git blame is for
(I've got a thing in vim that runs git blame on the current line, and pops up the commit message in the quickfix window).
Take the Tensorflow codebase (and Google and Microsoft code, and linux in general). There are currently ~1,028 TODO's in Tensorflow, most of which refer to a particular engineer in the form TODO(<name>):<comment>. This is pragmatism and good judgement in action.
Software engineering is all kinds of shades of grey, competing considerations, trade-offs and balances. It's what makes it interesting.