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:
“The goal of every culture is to decay through over-civilization; the factors of decadence,luxury, scepticism, weariness and superstition,are constant. The civilization of one epoch becomes the manure of the next.”
—Cyril Connolly (19031974)
“Postmodern agenda: the peep show is the art form; the voyeur is the protagonist; the goal is excitement from a safe distance; the alibi is that its all ironic.”
—Mason Cooley (b. 1927)
“Hollywood keeps before its child audiences a string of glorified young heroes, everyone of whom is an unhesitating and violent Anarchist. His one answer to everything that annoys him or disparages his country or his parents or his young lady or his personal code of manly conduct is to give the offender a sock in the jaw.... My observation leads me to believe that it is not the virtuous people who are good at socking jaws.”
—George Bernard Shaw (18561950)