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:
“In the years of the Roman Republic, before the Christian era, Roman education was meant to produce those character traits that would make the ideal family man. Children were taught primarily to be good to their families. To revere gods, ones parents, and the laws of the state were the primary lessons for Roman boys. Cicero described the goal of their child rearing as self- control, combined with dutiful affection to parents, and kindliness to kindred.”
—C. John Sommerville (20th century)
“Strange new problems are being reported in the growing generations of children whose mothers were always there, driving them around, helping them with their homeworkan inability to endure pain or discipline or pursue any self- sustained goal of any sort, a devastating boredom with life.”
—Betty Friedan (b. 1921)
“Work, as we usually think of it, is energy expended for a further end in view; play is energy expended for its own sake, as with childrens play, or as manifestation of the end or goal of work, as in playing chess or the piano. Play in this sense, then, is the fulfillment of work, the exhibition of what the work has been done for.”
—Northrop Frye (19121991)
“... the self respect of individuals ought to make them demand of their leaders conformity with an agreed-upon code of ethics and moral conduct.”
—Mary Barnett Gilson (1877?)