Monday, February 9, 2009

About Writing comments in your code..

"Write such a code that you don't have to write code comments."

I don't remember the who said this, but I firmly believe in what he said. I think the class names, method names and variable names should be meaningful and there should be enough (doesn't mean 'too many') blank lines at appropriate places. Proper indentation is also must.

If you make sure you have all of this, there should not be much problem reading your code for someone else..

1 comment: