Best Coding Practices - Goal of The Code

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:

  1. Is this a small function which will never be replaced ?
  2. 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 (1872–1945)

    The goal for all blind skiers is more freedom. You don’t have to see where you’re 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 you’re lacking one of the five senses, you adapt.
    Lorita Bertraun, Blind American skier. As quoted in WomenSports magazine, p. 29 (January 1976)

    ... 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–?)