Best comments in source code…

Posted: November 13, 2012 by Sankar Vijayakumar in Humour
Tags: , , , , ,

best comments in source code

Are you a good programmer?
Do you write comments in your source code?
If you don’t, then please write comments from today onwards…

Importance of comments in source code

  1. It’ll be easy for debuggers.
  2. Beginners can understand your logic.
  3. May help you for future modifications.
  4. Comments can tell a non-programmer the purpose of your code.

Which all portions need to be commented?

  1. The purpose of file or class declared.
  2. All the functions need to be commented.
  3. Flags and constants should be defined using comments.
  4. If you are using a code that you got by Googling, then paste the reference url as comment.
  5. Anything that you think complex or need to be explained.

Now it’s Fun time :lol:.
For the Best comments in source code, CLICK HERE.

best comments in source code

  1. Not what I was thinking but nice anyway! Congrats!


How's it? Your comments and suggestions...

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s