7 Secrets of successful programmers
Recently I ran across this white paper for the successful programming. The quoted points are must be followed by a good programmer …
1. Code for human consumption
"It is one of the most pervasive misunderstandings in computing that the source code is for the computer's consumption. Computers work with low-level binary code, a series of impenetrable 1's and 0's or hexadecimal numbers, not the structured high level languages we code in. The reason that these languages were developed was to help the programmer."
2. Comment often and comment well
3. Layout code to increase legibility
4. Expect the unexpected and deal with it
"Before you open a file, make sure that the file is present. Before you set focus to a control, make sure that the control is visible and enabled. Try to work out what conditions could cause your code to fail and test for them before they cause the program to fall over."
5. Name your variables to aid readability
6. Keep your functions and subroutines simple
7. Scope functions and variables appropriately
