From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11390f,4c42ac518eba0bbe X-Google-Attributes: gid11390f,public X-Google-Thread: 1014db,4c42ac518eba0bbe X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,4c42ac518eba0bbe X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,4c42ac518eba0bbe X-Google-Attributes: gid103376,public From: kevin@kombat.acadiau.ca (Kevin Swan) Subject: Re: Programming language vote - results Date: 1997/11/18 Message-ID: <347210a4.0@131.162.2.91>#1/1 X-Deja-AN: 290687811 References: <343fbb5a.0@news.iprolink.ch> <34466EB4.3381@dynamite.com.au> <6275dt$agm$3@news.on> <344BCED0.2D51@dynamite.com.au> <62tpap$7gh$1@darla.visi.com> <3470EF6E.F74@lysator.liu.se> <64qsf0$ccc@dfw-ixnews11.ix.netcom.com> Followup-To: comp.lang.ada,comp.lang.apl,comp.lang.c,comp.lang.c++ X-Complaints-To: news@hub.org X-Trace: hub.org 879891667 7214 131.162.2.91 (18 Nov 1997 22:21:07 GMT) Organization: Hub.Org Public Access Unix Server Newsgroups: comp.lang.ada,comp.lang.apl,comp.lang.c,comp.lang.c++ Date: 1997-11-18T00:00:00+00:00 List-Id: firewind (firewind@metroid.dyn.ml.org) wrote: : I very seldom comment my code at the first writing. I prefer to just code : and get it done, then go back later and add comments, but -only- to : code which is not easily understood. Heh, I take a somewhat opposite route. I comment before I code. :) Quite often, the first iteration of my programs look like this: FILE *fp; int count = 0; /* Open the file, test for errors. */ while (1) { /* Read a line, look for keyword. */ /* If found a keyword, print the line, otherwise increment count. */ /* If EOF hit, break out of loop. */ } /* Close file, print results to stdout. */ I then go back and fill in the code. I find this approach works quite well, and is very close to the top-down paradigm. Kev. -- Kevin Swan BCSH My university broke my email. If you want to email me, please send it to 013639s@dragon.acadiau.ca Acadia University How's my posting? Call 1-800-DEV-NULL ** Fatal Error [1]: 'Win95' virus detected on /dev/hda1; Formatting ...