Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: Did I write...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 57 Topic 4074 of 4195
Post > Topic >>

Re: Did I write a good (efficient) program?

by Robert <no@[EMAIL PROTECTED] > Mar 31, 2008 at 08:40 PM

On Mon, 31 Mar 2008 12:10:23 -0700 (PDT), Richard <riplin@[EMAIL PROTECTED]
>
wrote:

>On Mar 31, 1:44 pm, Robert <n...@[EMAIL PROTECTED]
> wrote:
>>
>> Efficient is Cobolese for fast. In the Good Old Days we had to hold the
machine's hand,
>> showing it how to go fast. Concern for speed became THE criteria
driving design.
>
>No. Often saving space was just as big a concern. Fitting the client's
>product and customer files onto one 4 MegaByte disk drive was as
>im****tant as having the daily invoice run take less than 24 hours.

I would think you'd oppose arbitrary size limits such as fixed length
arrays.

>> As
>> machines got faster, we kept doing it out of habit and because no one
told us to stop. We
>> now program as though the year is still 1973,
>
>Who are the 'we' that you speak of ?  Are you making another of your
>infamous 'universal truths' about 'all Cobol programmers', or is it
>just yourself that is a 'royal wee'.

'We' refers to those who pre-optimize code before there is evidence it
needs to be
optimized. For instance, defining fixed length strings and arrays because
they believe
variable length is too slow. That came out during a recent discussion
about ODO.

>> ignoring the fact that the Pentium 4 on our
>> desktop is 2,000 times the speed of a 370/158.
>
>Well, it does seem that you were alone in wanting to save a few
>nanoseconds on SEARCH ALL. You previously wanted to convince others to
>use pointer based lists because you claimed they were faster than
>tables (when my testing showed them not to be).

The principal advantage of lists over arrays is no practical limit on
size. They can grow
to millions of entries. Other advantages are variable length entries (e.g.
words) and the
ability to splice a new entry into the middle. 

>It may well be that you program "as though the year is still 1973",
>but others may not be doing so.

In 1973 everything (except files) was fixed length. We used fixed length
strings, numbers,
arrays, records and blocks in files. Now, outside Cobol, most things are
variable length.
The next Cobol standard proposes adding 'any length' data items and
arrays. The Old Guard
are opposed.
 




 57 Posts in Topic:
Did I write a good (efficient) program?
MikeB <MPBrede@[EMAIL   2008-03-30 06:37:28 
Re: Did I write a good (efficient) program?
spambait@[EMAIL PROTECTED  2008-03-30 15:09:03 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-03-30 11:47:14 
Re: Did I write a good (efficient) program?
Robert <no@[EMAIL PROT  2008-03-30 21:09:28 
Re: Did I write a good (efficient) program?
MikeB <MPBrede@[EMAIL   2008-03-30 11:52:44 
Re: Did I write a good (efficient) program?
"HeyBub" <he  2008-03-30 19:47:27 
Re: Did I write a good (efficient) program?
MikeB <MPBrede@[EMAIL   2008-03-30 12:22:30 
Re: Did I write a good (efficient) program?
Robert <no@[EMAIL PROT  2008-03-30 18:44:48 
Re: Did I write a good (efficient) program?
Richard <riplin@[EMAIL  2008-03-31 12:10:23 
Re: Did I write a good (efficient) program?
Robert <no@[EMAIL PROT  2008-03-31 20:40:31 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-03-31 18:20:29 
Re: Did I write a good (efficient) program?
"Michael Mattias&quo  2008-04-01 12:44:49 
Re: Did I write a good (efficient) program?
docdwarf@[EMAIL PROTECTED  2008-04-01 14:29:40 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-01 08:43:48 
Re: Did I write a good (efficient) program?
"Michael Mattias&quo  2008-04-01 16:04:49 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-01 11:08:06 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-02 10:44:20 
Re: Did I write a good (efficient) program?
"Michael Mattias&quo  2008-04-01 23:21:29 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-02 13:37:38 
Re: Did I write a good (efficient) program?
Clark F Morris <cfmpub  2008-04-01 21:43:15 
Re: Did I write a good (efficient) program?
SkippyPB <swiegand@[EM  2008-04-02 11:50:47 
Re: Did I write a good (efficient) program?
"Michael Mattias&quo  2008-04-02 11:01:28 
Re: Did I write a good (efficient) program?
SkippyPB <swiegand@[EM  2008-04-03 11:46:22 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-03 10:01:01 
Re: Did I write a good (efficient) program?
SkippyPB <swiegand@[EM  2008-04-04 11:08:39 
Re: Did I write a good (efficient) program?
"HeyBub" <he  2008-04-03 18:07:19 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-02 10:07:54 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-02 07:53:35 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-03 10:40:31 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-03 07:47:45 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-02 23:08:22 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-04 01:39:13 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-03 19:31:14 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-04 17:14:34 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-04 05:05:35 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-04 23:37:21 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-04 13:58:33 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-05 11:27:41 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-04 07:53:10 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-04 11:20:56 
Re: Did I write a good (efficient) program?
Howard Brazee <howard@  2008-04-04 11:46:09 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-05 11:53:54 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-05 11:41:47 
Re: Did I write a good (efficient) program?
Richard <riplin@[EMAIL  2008-03-31 23:00:30 
Re: Did I write a good (efficient) program?
"tlmfru" <la  2008-04-01 12:15:13 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-02 09:41:51 
Re: Did I write a good (efficient) program?
"Pete Dashwood"  2008-04-02 09:30:55 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-01 13:01:45 
Re: Did I write a good (efficient) program?
MikeB <MPBrede@[EMAIL   2008-04-01 23:20:50 
Re: Did I write a good (efficient) program?
"Rick Smith" &l  2008-04-02 03:08:22 
Re: Did I write a good (efficient) program?
jnjsle1@[EMAIL PROTECTED]  2008-05-16 07:21:01 
Re: Did I write a good (efficient) program?
jnjsle1@[EMAIL PROTECTED]  2008-05-16 07:31:20 
Re: Did I write a good (efficient) program?
"HeyBub" <he  2008-05-16 10:34:50 
Re: Did I write a good (efficient) program?
jnjsle1@[EMAIL PROTECTED]  2008-05-16 11:21:29 
Re: Did I write a good (efficient) program?
jnjsle1@[EMAIL PROTECTED]  2008-05-16 11:27:44 
Re: Did I write a good (efficient) program?
Robert <no@[EMAIL PROT  2008-05-16 21:13:06 
Re: Did I write a good (efficient) program?
jnjsle1@[EMAIL PROTECTED]  2008-05-16 11:32:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:36:18 CDT 2008.