Comment Programming - Practical Uses

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:

    General scepticism is the live mental attitude of refusing to conclude. It is a permanent torpor of the will, renewing itself in detail towards each successive thesis that offers, and you can no more kill it off by logic than you can kill off obstinacy or practical joking.
    William James (1842–1910)

    And so we ask for peace for the gods of our fathers, for the gods of our native land. It is reasonable that whatever each of us worships is really to be considered one and the same. We gaze up at the same stars, the sky covers us all, the same universe compasses us. What does it matter what practical systems we adopt in our search for the truth. Not by one avenue only can we arrive at so tremendous a secret.
    Quintus Aurelius Symmachus (A.D. c. 340–402)