Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

Based of submission from: ms0p+@andrew.cmu.edu (Michael Gordon Shapiro) to rec.humor.funny
Date: 2 Apr 91 11:30:03 GMT

How to program in "C"

1] Use lots of global variables. Then you do not need to think about whether variable is defined in this subroutine or not.
2] Give them short names such as: X27, g, l, x. That will prevent spelling errors.
3] Put as much as possible in  .h files. That will make your program shorter and clearer
4] You can definitely improve standard functions by rewriting them...
5] Include some inline assembly code. That will speed your program...
6] You can improve the language too. Macros and #defines will provide you additional flexibility...
7] Assume the compiler takes care of all the little details you didn't quite understand.

How to debug a "C" program.

1] If at all possible, don't. Let someone else do it. That't the best way widely used in Linux
2]  Since you got it to compile, the problem must be in the Other Guys Code.
3]There is rumor that "printf" is useful
4] The problem can be in those unreliable Standard Libraries.
5] If it still doesn't work, this is a compiler program and you need to re-write it in assembler.