News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
Is commenting your code useless?
October 16, 2009 @ 09:45:03

Jani Hartikainen has posted some of his opinions about code commenting in a response to this post from James Carr claiming that code comments on fresh code is a bad idea.

James puts it quite well: When you write comments, it would be much better idea to just talk with your coworkers about it. He uses "excuses" as an example - code which does something that you need to explain, or says something like "Here we do X but we should really do Y" While I partially agree - if you're not sure which approach you should use, or whether your approach is correct, talking with your coworkers is definitely a good idea.

Jani talks a bit about what he considers good and bad commenting - non-redundant, descriptive and sometimes difficult to remember to do correctly.

0 comments voice your opinion now!
comment code opinion


blog comments powered by Disqus

Similar Posts

Adam Harvey's Blog: (Unmoderated) manual notes are bad, mmkay?

Phil Sturgeon: Understanding Circumstance

Brandon Savage's Blog: 5 (Good) Lessons The Government Teaches Us About Object-Oriented Programming

Bradley Holt's Blog: The Case For Rapid Release Cycles

Brandon Savage's Blog: Data Formatting: It IS Our Job


Community Events





Don't see your event here?
Let us know!


framework introduction composer security symfony opinion library podcast series interview version language community conference laravel tool list release voicesoftheelephpant artisanfiles

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework