+ 2
Pls ladies and gentlemen lets be adding comments to every lines of our code for the beginners here to learn. Thanks.
Pls ladies and gentlemen lets be adding comments to every lines of our code for the beginners here to learn. Thanks.
3 Answers
+ 17
Like
// prints 1
System.out.print(1);
Please no.
Just add useful comments for code that is hard to understand. Maybe what the code is about at the very top.
+ 6
Somewhere you are right even comment every lines seems hard, I believe a mix of comments and understable var/functions names is enough. But as you said many people begin here and probably type code without really know what they are fully doing... but comment force beginners to understand their own work :3
+ 1
Coming up with an idea.
You should try writing a novel based on a code. Gonna enjoy it.
No need for hurry to downvote. Just imagine.