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:
“History not used is nothing, for all intellectual life is action, like practical life, and if you dont use the stuffwell, it might as well be dead.”
—A.J. (Arnold Joseph)
“The three practical rules, then, which I have to offer, are, 1. Never read any book that is not a year old. 2. Never read any but famed books. 3. Never read any but what you like.”
—Ralph Waldo Emerson (18031882)