[rescue] Small servers (was Re: WTT: 1.5G of PC2700 for 1G of PC100)
wa2egp at att.net
wa2egp at att.net
Mon May 5 10:22:35 CDT 2008
> 1. Always initialize variables.
>
> 2. Validate the parameters to a system call before you call it.
>
> 3. Validate the results of a system call (as in don't use a NULL pointer).
>
> 4. Always make sure the data fits in the space allocated for it.
>
> 5. Always make sure an I/O operation succeeds.
>
> 6. Put lots of debugging statments in your code.
>
> 7. Comments, comments, comments.
>
> 8. Write as simple code as possible. If it is difficult for someone to
> understand, it will be impossible to maintain. (KISS).
>
> Geoff.
Also remember constants aren't and variable won't. :)
Bob
More information about the rescue
mailing list