I have a personal rule: If I need a comment, it goes at the beginning of the function.
This neatly groups the comment with the code it applies to.
Occasionally I have to make a function "just" for this grouping purpose, but that's fine.
This neatly groups the comment with the code it applies to.
Occasionally I have to make a function "just" for this grouping purpose, but that's fine.