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:
“What, girl, though grey
Do something mingle with our younger brown, yet ha we
A brain that nourishes our nerves, and can
Get goal for goal of youth.”
—William Shakespeare (15641616)
“Religion means goal and way, politics implies end and means. The political end is recognizable by the fact that it may be attainedin successand its attainment is historically recorded. The religious goal remains, even in mans highest experiences, that which simply provides direction on the mortal way; it never enters into historical consummation.”
—Martin Buber (18781965)
“Motion or change, and identity or rest, are the first and second secrets of nature: Motion and Rest. The whole code of her laws may be written on the thumbnail, or the signet of a ring.”
—Ralph Waldo Emerson (18031882)