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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92892151eecb310d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-18 10:13:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!falcon.america.net!eagle.america.net.POSTED!not-for-mail Message-ID: <3C48661F.9C0F316B@otelco.net> From: Larry Hazel X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en,x-ns11F8K63r3NhQ,x-ns2r2e09OnmPe2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Porting Ada to C (Stealth development) References: <3C47375B.8060604@worldnet.att.net> <3C484D86.3DA70C2C@otelco.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 18 Jan 2002 12:14:55 -0600 NNTP-Posting-Host: 66.0.32.230 X-Trace: eagle.america.net 1011377610 66.0.32.230 (Fri, 18 Jan 2002 13:13:30 EST) NNTP-Posting-Date: Fri, 18 Jan 2002 13:13:30 EST Organization: 24hoursupport.com Xref: archiver1.google.com comp.lang.ada:19065 Date: 2002-01-18T12:14:55-06:00 List-Id: Ray Blaak wrote: > > Larry Hazel writes: > > The few times I have been required to write in C, I wrote Ada anyway. Then > > commented out the ada and hand translated to C. The only comments were the > > Ada code and comments that were originally in the Ada code. > > I guess I am fundamentally a lazy programmer. > > Why implement it twice? This increases the chance for errors and is more work. > > When (not if!) you fix a bug, do you fix only the C code, or the Ada as well? > How do you test the Ada fixes? > Well, you should document your code with comments anyway, and you should change the comments when you change the code for whatever reason. Actually the Ada code I wrote probably wasn't compilable anyway (more like pseudo code), but much more readable than the C code could ever be. It's the only way I could ever write anything in C. Never have been able to read C and figure out what it's supposed to be doing. Larry