0

Is comments necessary?

20th Jun 2017, 5:35 AM
Nirmal Dominic
Nirmal Dominic - avatar
3 Respostas
0
If you're within a team then that means you'll look at code that you didn't write and your peers will look at code that you wrote. It's best to offer comments as a source of documentation. It's a good habit to pick up on even if you're​ not within a team. Also, what if you referred to code that you previously written like, several months back or even a year. Just write comments.
20th Jun 2017, 6:21 AM
Don
Don - avatar
+ 1
not necessary but it is beneficial, when you write thousand lines code so our comments can make us understand what is this code for
20th Jun 2017, 5:39 AM
Suraj
Suraj - avatar
0
I prefer comments as it helps you and other programmers to read and maintain it easily. It can safe you time at the end of the day!
5th Jul 2017, 1:35 PM
Nico Rob.
Nico Rob. - avatar