And has Martin ever even worked on large, non-greenfield projects? That's the only way I could see anyone professing such idealism.
And has Martin ever even worked on large, non-greenfield projects? That's the only way I could see anyone professing such idealism.
You're right - in fact we should do this for every line of code, so that we know of whom to ask questions!
func main() { // jen20
fmt.Println("Hello World") // ziml77
} // jen20
What's the downside of adding a few extra characters!?Of course, this view is already available to people: `git blame` - and it's the same for comments, so there is no need.
The exception is "notes to future self" during the development of a feature (to be removed before review), in which case the most useful place for them to appear is at the _start_ of the comment with a marker:
// TODO(jen20): also implement function X for type Y
Then they are easy to find...if you want to live in this kind of absolutism, I would rather have the name on every line than no comments at all.
Install the appropriate extension for GitHub and you can have it there too, with no extra effort or maintenance burden of duplicative metadata.