go-v.orgcodex
Menu
Page tools

codex · Philosophy

Comment programming

Comment programming, is a (mostly) satirical software development technique that is heavily based on commenting out code. In comment programming, the comment tags are not used to describe what a certain piece of code is doing, but rather to stop some parts of the code from being executed. The aim is to have the commented code at the developer's disposal at any time it might be needed. This is especially useful when the requirements change rapidly. In this case, they happen to revert to older versions of themselves, thus making the programmer either write the code again, or revert parts of the code from the versioning repository, which would be more time-consuming.

With comment programming, when such a request for reverting to an old implementation arises, the developer just comments out the current implementation and uncomments the previous. It is advisable to add short descriptive comments to blocks of commented code.

Wikipedia contributors, "Comment programming", Wikipedia, revision 1320857500, retrieved 20 November 2026, source, CC BY-SA 4.0.

More Philosophy · Search the codex