December 13, 2006 

Better code

Consider two programs.
One was written by a clever programmer using all the tricks.
The program contains no comments, but it works.
The other program is well commented and nicely structured, but it doesn't work.
Which program is more useful? In the long run, the broken one.
It can be fixed. Although the clever program works now, sooner or later all programs have to be modified.
The worst thing that you will ever have to do is to modify a cleverly written program.
...on "Practical C programming"

 Old 'motd' says, "Don't be a only person to do the task, you won't be promoted"

Comprehensive code is the best code.
The code should be interpreted by machine. But firstly must be understanded by human for maintenance.
Clever and hard-to-read code is a kind of self-admiration.