c
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
c [2015/12/31 02:29] – [Keep it simple] admin | c [2015/12/31 02:32] – [Use goto] admin | ||
---|---|---|---|
Line 12: | Line 12: | ||
Do it even when it looks stupidly simple - later, when the routine is made more elaborate, then the logic is in place and you will remember to cleanup: | Do it even when it looks stupidly simple - later, when the routine is made more elaborate, then the logic is in place and you will remember to cleanup: | ||
- | < | + | < |
/* @return 0 if file is foobarable. Otherwise 1. | /* @return 0 if file is foobarable. Otherwise 1. | ||
*/ | */ | ||
Line 89: | Line 89: | ||
As Kernighan is reputed to have said, debugging (and tuning) is twice as hard as coding so if you code to the limit of your ability, then by definition, you will not be able to debug or tune it! This sin is most often commited by new programmers eager to show how clever they are. I'm not usually very impressed. | As Kernighan is reputed to have said, debugging (and tuning) is twice as hard as coding so if you code to the limit of your ability, then by definition, you will not be able to debug or tune it! This sin is most often commited by new programmers eager to show how clever they are. I'm not usually very impressed. | ||
====Have it reviewed==== | ====Have it reviewed==== | ||
- | I've learned so much from having others (contructively) critique my code. | + | I've learned so much from having others (constructively) critique my code. |
====Links==== | ====Links==== | ||
Here's someone who thinks the same way: | Here's someone who thinks the same way: |
c.txt · Last modified: 2020/10/17 03:05 by 114.119.151.1