??? 12/05/06 13:09 Read: times |
#128984 - some do flowcharts, before they code Responding to: ???'s previous message |
I write the comments and then the code. first write all function titles, then the main, then make it match, THEN code.
It can be most helpful to write the comments before the code. Many may think that the insistence on comments is nothing but "sticking to a concept", nothing could be farther from the truth. I doubt I am the only one that "learned to comment" by being asked to modify some code written by me 5 years earlier and looking at it thinking "what the h... is that?". Then spending days, maybe weeks commenting it which would have been done in hours, had I done it at the original writing of the code. Erik |