+ 1
What is the reason with comments when they do nothing to the output
5 Réponses
+ 3
In future when you will be working on big programmes which means that you will be writing so long code, you will need to remember what some parts of your code is and why you write that lines there. If you use comments, you will easily find your reasons why you wrote these old lines of your code.
Keep learning !
+ 1
Ok, listen to this advice:
comment all :D
So, every class u declare (summary), every method u declare (what it does), if u have more than 30 lines of code in method comment few parts, comment some bigger algorithms(name of it if it's predefined, what it does)...
It doesnt mean comment every line of code, but in big projects u absolutely need to comment so ur code is more readable and easier to understand.
0
They help you understand your own code or help other people understand it. It's good practice to comment your code even at a professional level.
0
They help you understand your own code or help other people understand it. It's good practice to comment your code even at a professional level.
0
Ok thanks