You can edit almost every page by Creating an account and confirming your email.

Comment-driven development

From EverybodyWiki Bios & Wiki


Software development
Core activities
Paradigms and models
Methodologies and frameworks
Supporting disciplines
Practices
Tools
Standards and Bodies of Knowledge
Glossaries

Comment-Driven Development (CDD) is a programming methodology, that emphasizes on explaining first in comments the purpose of the program or program part being developed. Only after the comments state clearly in plain language what the code is supposed to do and why, one begins to write the program code itself.

The purpose of Comment-Driven Development is to enable the current programmer and others, that work on the code later, to get things straight concerning the tasks or problems solved by this program code. It increases the maintainability and unburdens the comprehension of the code. Which is especially important when the software gets older and eventually becomes legacy code.[1] The comments written this way are also a basis for the software documentation. This notably applies to API documentation when the behaviour of non private program objects is described during there development.[2]

Combining it with other programming methodologies like Test-driven development (TDD) or Behaviour-driven Development (BDD) yet increases the clarity and maintainability of the program code. This way the comments describing the still to be implemented program objects facilitate the creation of their Unit tests in the line of TDD and the understanding of the software's expected behaviour.[1]

References

External links

  • James Edwards (2024-02-13). "Comment-Driven Development". SitePoint Pty. Ltd. Retrieved 2025-10-14.
  • Muhammad Ibnuh (2021-12-19). "Comment driven development". Muhammad Ibnuh. Retrieved 2025-10-14.
  • Ralf Holly (2010-09-28). "Comment-Driven Development". Ralf Holly. Retrieved 2025-10-14.
  • Martin Cowen (2025-10-30). "Comment Driven Development for low-level design before coding". Martin Cowen. Retrieved 2026-04-20.


This article "Comment-driven development" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Comment-driven development. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.