+ 1

What is the reason with comments when they do nothing to the output

22nd Nov 2016, 6:22 AM
Richard
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 !
22nd Nov 2016, 7:01 AM
Miraç Akif Merttürk
Miraç Akif Merttürk - avatar
+ 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.
1st Dec 2016, 12:39 AM
Petar Suvajac
Petar Suvajac - avatar
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.
22nd Nov 2016, 6:27 AM
Caleb
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.
22nd Nov 2016, 6:27 AM
Caleb
0
Ok thanks
22nd Nov 2016, 6:29 AM
Richard