Practical Uses
This programming process can be used for prototyping a new design pattern. This is done by creating a new structure of classes without any implementation, and then you can add the implementation later.
Pseudocode Example:
function onClick { // This is where we handle mouse click. // The result of this function is that a button will be highlighted. }As you can see in the example, there is a structure around a click event handler. However, comment programming is used instead of a real implementation. The idea is that many functions can be written like this, and then the design can be reworked and revisited without having to refactor a lot of source code.
Read more about this topic: Comment Programming
Famous quotes containing the word practical:
“Theorists may say what they like about a mans children being a continuation of his own identity, but it will generally be found that those who talk in this way have no children of their own. Practical family men know better.”
—Samuel Butler (18351902)
“Men sometimes speak as if the study of the classics would at length make way for more modern and practical studies; but the adventurous student will always study classics, in whatever language they may be written and however ancient they may be. For what are the classics but the noblest recorded thoughts of man?... We might as well omit to study Nature because she is old.”
—Henry David Thoreau (18171862)