??? 07/11/05 12:52 Read: times |
#97014 - Simpler help. Responding to: ???'s previous message |
True wording things helps a lot, but that's a pretty extreme action, done when you're really frustrated. What I found is that using automatic formatting aids - syntax highlighting/coloring, autoindenting, all that fancy silly stuff, helps you A LOT.
Bugs/typos like this: /* The main loop begins here. /* become the most horrible bane after 3-4 hours of coding, and even though leaving things till tomorrow usually fixes them, you can save a lot of time and nerves with syntax highlighting editor which will immediately show HOW MUCH is really commented off. And stuff like: for(i=1;i<x;i++); thing1(); thing2(); come out immediately with autoindenter. Also running stuff through a compiler with all warnings enabled often help ("Did you really mean = and not == in if(a=b){...? ) One more thing: Find matching bracket. Sometimes the end of your function looks like this: } } } count++; } } return x; } Either you discipline yourself to comment each closing bracket, or just check which bracket closes what before introducing changes. |