954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Remarks

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.

exception
Newbie Poster
15 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

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.:)

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

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

Strangelle
Newbie Poster
7 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You