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:
“Whenever you pray, make sure you do it at school assemblies and football games, like the demonstrative creatures who pray before large television audiences. That is the real goal of the thing. But do not, I urge you, pray all alone in your home where no one can see. That does not get you ratings.”
—Garry Wills (b. 1934)
“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)
“The goal for all blind skiers is more freedom. You dont have to see where youre going, as long as you go. In skiing, you ski with your legs and not with your eyes. In life, you experience things with your mind and your body. And if youre lacking one of the five senses, you adapt.”
—Lorita Bertraun, Blind American skier. As quoted in WomenSports magazine, p. 29 (January 1976)
“...I had grown up in a world that was dominated by immature age. Not by vigorous immaturity, but by immaturity that was old and tired and prudent, that loved ritual and rubric, and was utterly wanting in curiosity about the new and the strange. Its era has passed away, and the world it made has crumbled around us. Its finest creation, a code of manners, has been ridiculed and discarded.”
—Ellen Glasgow (18731945)