Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many program… - Brian Kernighan
Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many program…
- Brian Kernighan
Don't document bad code - rewrite it. - Brian Kernighan
Don't document bad code - rewrite it.
... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If you don't, you are no… - Brian Kernighan
... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If you don't, you are no…
As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that w… - Brian Kernighan
As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that w…
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements. - Brian Kernighan
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.
Believe the terrain, not the map - Brian Kernighan
Believe the terrain, not the map
C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess. - Brian Kernighan
C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.
Mechanical rules are never a substitute for clarity of thought. - Brian Kernighan
Mechanical rules are never a substitute for clarity of thought.
Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway. - Brian Kernighan
Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway.
Login to join the discussion
Login to join the discussion