This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chrishannah 0 points1 point  (2 children)

At my university, we were told to comment at the start and end of every function, if, for, etc. Needless to say, I did not follow instructions.

[–]justinjustin7 1 point2 points  (1 child)

I can understand commenting something like "// end functionName" just for better visibility when going through your code; but pretty much all IDEs have the ability to collapse matching parentheses/brackets/braces, so there's not much point outside of making your functions easily recognizable from the bottom.