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)
“When ... I comprehended that poetry had no provision in it for ultimate practical attainment of the rightness of work that is truth, but led on ever only to a temporizing less- than-truth ... I stopped.”
—Laura (Riding)