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:
“Call them rules or call them limits, good ones, I believe, have this in common: They serve reasonable purposes; they are practical and within a childs capability; they are consistent; and they are an expression of loving concern.”
—Fred Rogers (20th century)
“Juggling produces both practical and psychological benefits.... A womans involvement in one role can enhance her functioning in another. Being a wife can make it easier to work outside the home. Being a mother can facilitate the activities and foster the skills of the efficient wife or of the effective worker. And employment outside the home can contribute in substantial, practical ways to how one works within the home, as a spouse and as a parent.”
—Faye J. Crosby (20th century)