Goal of The Code
Another good practice is to know the goal of the code. Never begin coding without understanding why the code is being written and what is it being written for.
Questions to ask yourself while coding:
- Is this a small function which will never be replaced ?
- Will there be any modifications to this function ?
Mostly, there are functions that fetch dates from the system and display it to the users on their web pages, such functions usually don't need replacement or modifications. However in complex projects, there are a lot of things that may need alteration or addition or even removal. Therefore always document the code as it is being modified so that the goal of the code is clear at all the steps.
Read more about this topic: Best Coding Practices
Famous quotes containing the words goal of the, goal of, goal and/or code:
“The preservation of life seems to be rather a slogan than a genuine goal of the anti-abortion forces; what they want is control. Control over behavior: power over women. Women in the anti-choice movement want to share in male power over women, and do so by denying their own womanhood, their own rights and responsibilities.”
—Ursula K. Le Guin (b. 1929)
“An older child, one who possesses a conscience, will be troubled with self-reproaches and feelings of shame for his naughtiness, even if he is not discovered. But our two-year-olds and our three-year- olds experience guilt feelings only when they feel or anticipate disapproval from the outside. In doing this, they have taken the first steps toward the goal of conscience, but there is a long way ahead before the policeman outside becomes the policeman inside.”
—Selma H. Fraiberg (20th century)
“The legend of Felix is ended, the toiling of Felix is done;
The Master has paid him his wages, the goal of his journey is won;
He rests, but he never is idle; a thousand years pass like a day,
In the glad surprise of Paradise where work is sweeter than play.”
—Henry Van Dyke (18521933)
“Motion or change, and identity or rest, are the first and second secrets of nature: Motion and Rest. The whole code of her laws may be written on the thumbnail, or the signet of a ring.”
—Ralph Waldo Emerson (18031882)