Re:Why Not Comments
by dllthomas on Wednesday September 11, 2024 @02:29AM
(#41508570)
I once came to a complicated, multi threaded C++ program and saw:
[ Parent
| on HN ]
I'm working RIGHT NOW in a codebase where before each function definition there is a comment "// Function"
I wonder if that's intended for a specific workflow, e.g. ctrl-f "Function" enter-enter-enter-enter to cycle through all the functions in the file.
That's the only reason I can think of for writing those comments.
With a half decent IDE you do not need it. It is inexcusable.
Oh I agree, but the person who put them there must have had some sort of reason, even if it's a bad one.