delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/26/10:30:35

From: "Judson McClendon" <judmc123 AT bellsouth DOT net>
Newsgroups: comp.os.msdos.djgpp,alt.comp.lang.learn.c-c++,alt.lang.basic
References: <8E0A6B90Bjsampsonpostmasterco AT news DOT earthlink DOT net> <OdFl3.2157$xN4 DOT 20163 AT news3 DOT mia> <9APl3.1054$XG6 DOT 30509 AT dfiatx1-snr1 DOT gtei DOT net> <90_l3.4474$xN4 DOT 43628 AT news3 DOT mia> <Wc5m3.718$nr5 DOT 22636 AT dfiatx1-snr1 DOT gtei DOT net>
Subject: Re: A small bussiness billing application
Lines: 36
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <aUZm3.365$K65.4027@news2.mia>
Date: Mon, 26 Jul 1999 09:02:34 -0500
NNTP-Posting-Host: 209.214.104.51
X-Trace: news2.mia 932997766 209.214.104.51 (Mon, 26 Jul 1999 10:02:46 EDT)
NNTP-Posting-Date: Mon, 26 Jul 1999 10:02:46 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Michael Mattias wrote:
>First, I hope you realize the "bigot" comment was jocular. I've seen a lot
>of your BASIC code and it's some pretty good stuff.

Sure, I didn't take any offense.  You write good stuff, yourself.

>Second, there's no reason using long integers and doing stuff in pennies
>must perforce result in slow bloatware.

I agree.  I was talking about the fact that when you calculate something
like  A = B * (C + D / E) using integer math to represent non-integer
decimal values, you had better think it through very carefully, or you
will likely encounter scaling, rounding and/or truncation problems.  That
makes using self-scaled integers not only much more time consuming (for
the programmer), but far more error prone as well.

>The long integer is but a tool, and as we all know, it's not the paintbrush,
>it's the artist.

I agree.  But the artist is better off with better tools, no? :-)

>Third, given a financial application (which I really not do many of), with
>both BASIC and COBOL available, I'd do it in COBOL, unless I had a lot a
>string-handling to do, in which case I'd do it in BASIC. In the latter case,
>I'd look real hard for a way to do the string work in BASIC and the numeric
>stuff (especially the formatting of screens and reports) in COBOL.

Sounds like we are in agreement. :-)
--
Judson McClendon      judmc123 AT bellsouth DOT net  (remove numbers)
Sun Valley Systems    http://personal.bhm.bellsouth.net/~judmc
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."



- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019