From: Larry Hazel <lhhazel@otelco.net>
Subject: Re: Porting Ada to C (Stealth development)
Date: Fri, 18 Jan 2002 12:14:55 -0600
Date: 2002-01-18T12:14:55-06:00 [thread overview]
Message-ID: <3C48661F.9C0F316B@otelco.net> (raw)
In-Reply-To: u665zy3qr.fsf@telus.net
Ray Blaak wrote:
>
> Larry Hazel <lhhazel@otelco.net> 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
next prev parent reply other threads:[~2002-01-18 18:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-17 14:44 Porting Ada to C (Stealth development) Dale Pontius
2002-01-17 19:47 ` Dan Andreatta
2002-01-18 14:12 ` Dale Pontius
2002-01-18 19:15 ` Dan Andreatta
2002-01-18 22:44 ` Zoran
2002-01-18 23:13 ` Frode Tennebø
2002-01-18 17:13 ` Ray Blaak
2002-01-20 19:43 ` Nick Roberts
2002-01-21 11:13 ` Peter
2002-01-17 20:43 ` Jim Rogers
2002-01-18 14:19 ` Dale Pontius
2002-01-18 16:29 ` Larry Hazel
2002-01-18 17:21 ` Ray Blaak
2002-01-18 18:14 ` Larry Hazel [this message]
2002-01-18 20:25 ` tmoran
2002-01-19 7:32 ` Simon Wright
2002-01-19 18:58 ` Ray Blaak
2002-01-18 17:18 ` Stephen Leake
2002-01-18 23:04 ` Brian Rogoff
2002-01-19 7:34 ` Simon Wright
2002-01-20 17:32 ` Brian Rogoff
2002-01-18 19:48 ` Ted Dennison
2002-01-18 20:02 ` Wes Groleau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox