Should I document my private methods?

Jader Dias picture Jader Dias · Nov 16, 2009 · Viewed 11.1k times · Source

Private methods documentation can only be seen by who has access to the source code. Is it worth the effort spent on it?

Answer

Reed Copsey picture Reed Copsey · Nov 16, 2009

Personally, I feel that it is. Documentation is often the most useful to future developers maintaining your software - especially member documentation.

Even public API documentation is only of limited use to any audience other than a developer. Document for those following - they will thank you.