+ 1

How do i know when to add comments when coding?

19th Apr 2019, 1:35 PM
YCP
3 odpowiedzi
+ 4
By understanding the code And make it into your heart
19th Apr 2019, 1:48 PM
Eknoor Singh
Eknoor Singh - avatar
+ 1
It's not required but a good and useful practice.. think of it as a documentation of the code.. So you could first start writing the structure of your code as comments and then write the code between the comments.. (Descriptions of variables, functions, sections) Anything you learned during programming could make a useful comments like (what's a predefined function do).. Corrections/improvements/modifications to remind yourself or others why you did what you did.. Anyway take as a way to communicate with your future self or others about that code..
19th Apr 2019, 2:33 PM
Mia380
Mia380 - avatar
+ 1
It's your code make it a comment complete from beginning to end nothing should be output
19th Apr 2019, 3:17 PM
Bug Slayer