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, goal and/or code:
“It is the goal of the American university to be the brains of the republic.”
—Johan Huizinga (18721945)
“The goal in raising ones child is to enable him, first, to discover who he wants to be, and then to become a person who can be satisfied with himself and his way of life. Eventually he ought to be able to do in his life whatever seems important, desirable, and worthwhile to him to do; to develop relations with other people that are constructive, satisfying, mutually enriching; and to bear up well under the stresses and hardships he will unavoidably encounter during his life.”
—Bruno Bettelheim (20th century)
“Faultless honesty is a sine qua non of business life. Not alone the honesty according to the moral code and the Bible. When I speak of honesty I refer to the small, hidden, evasive meannesses of our natures. I speak of the honesty of ourselves to ourselves.”
—Alice Foote MacDougall (18671945)