do comments in code affect the Programs efficiency or it slows down the processing or reading of the code?? does it have disadvantages?

In our program, we are not allowed to delete the past programmer's code when we have modification, we just have to comment it.

7 Years
Discussion Span
Last Post by Strangelle

No, it does not affect your application at all. On the contrary, it helps with the overall maintenance of an application and is thus promoted and supported by ALL teachers around the globe.

Imagine you have to "adjust" another developer's application that has NO comments. He also has his own style of naming conventions for example say a command button, the norm is cmdMyButton, but he calls it ThisButtonHere. The enormous task to try and sift through OOP subs and declerations will drive you mad.

If there is however a comment below the naming of the button saying "Save Data with this button etc..", you will know exactly what to expect throughout the rest of the sub's code.:)


nope .. comments doesn't affect your program .. so it's ok to write comments as long as you want ...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.