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:
“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)
“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 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?)