+ 1
Whats the point of a comment while coding?
5 ответов
+ 5
It helps in documenting what a particular block of code is doing. This is very useful especially if your code is read by other people who are not familiar with your code and its logic.
+ 5
One time I started going over one of my own codes after leaving it in limbo. I got confused and ended up rewriting the code from scratch! This is where comments could have saved me the pain and the suffering of rewriting the whole thing. 😂
+ 2
To understand your code even two years after writing it.
+ 2
Absolutely. When rewriting from scratch is quicker than improving on what's there, something must have gone wrong.
+ 1
I definitely experienced that here on Sololearn, looking at one of my own, older codes, thinking: 'What?'