comp.lang.ada
 help / color / mirror / Atom feed
From: Richard D Riehle <laoXhai@ix.netcom.com>
Subject: Re: Confusing language, was Re: Help help.. please.i am totaly new in     ada programing
Date: 1999/11/09
Date: 1999-11-09T19:56:17+00:00	[thread overview]
Message-ID: <809u91$3ik$1@nntp1.atl.mindspring.net> (raw)
In-Reply-To: 38285C60.B3E2D2BC@pwfl.com

>Robert A Duff wrote:
>
>> That might be true in some cases, but I think that in the vast majority
>> of cases, Y2K bugs were caused by sloppiness.

Well, now.  That raises my dander a little bit, Mr. Duff.  I am 
privileged to be one of those people who contributed to the creation
of the Y2K problem.  My contribution was not a function of sloppiness.
It was carefully planned.  In some cases it was the most effective
solution available.

In 1969, working in a computer programming environment heavily dependent
on 80-column punched cards, we discovered that the single column assigned
to hold the year would create problems with calculations when we turned
over to 1970.  What to do.  What to do.  We decided to use the 11 punch
for the 7, the 12 for the 8, and a combination of the two for the 9. This
created a nice little Y2K problem.  None of us expected to be using the
program with punched cards in the year 2000.  

I worked on some COBOL projects for both commercial and DoD software
in the 1960's and 1970's.  The COBOL compilers were not designed to
use binary numbers.  We did have hexadecimal values.  So we coded the
year in a single byte, representing two digits.  Usage Comp-1 and Comp-2
were regarded as strange, and they were not portable, so we almost always 
designed with Comp-3 or Display. The disk drives were not large, the
storage access methods unsophisticated, and primary memory was often
a concern.  If, in a file of 50,000 records, we could save 50,000
bytes of storage by using only one byte for the date, that was a
significant savings.  The fact is that often we had many types of
records with many kinds of dates so we were often saving in the 
neighborhood of a half-million bytes.   When your maximum disk storage
is ten megabytes, guess what we are going to do?

Once those files were designed, they continued to be used even after
the hardware grew to accomodate larger date fields.  New programs that
used this earlier data also used their files.   Those new programs were
designed to preserve compatibility with the original files.  The model
simply grew upon itself.  In commercial environments one does not 
periodically rewrite the entire system.  Certainly, one does not create
incompatibilities between current and historical electronic records.

So many of the pronouncements about Y2K are a function of
oversimplicfication.  Those of us who were creating the problem
were doing the best we could given the environments in which we
were working.  Sometimes the question would be raised, "What do 
we do when the century turns over."  The people in the trenches
who were writing programs even asked such questions.  

The Y2K problem is a function of the economics of the period. Most
managers understood that no one would promote them for solving some
problem with implications 20 years distant.  There were too many
projects to get finished with more imminent potential for disaster.

If there was sloppiness, it was a managerial sloppiness, not a
technological sloppiness.  All the structured programming in the
world, all the object-oriented programming methods, all the blame
one can affix on any technological approach, fails to recognize the
true complexity of the problem going all the way back to its origins.

For a concrete example, let me share the following.  A programmer was
converting some programs from COBOL to Ada.  The layout for a record
in his design, as late as 1987, was,

         type XXXXXXXXXX is
            record
                ...
                MM  : String (1..2);
                YY  : String (1..2);
                DD  : String (1..2);
                ...
            end record;

When asked about it, he noted that the original files were designed that
way and his program was required to process the data without altering
its formats.   Was he being sloppy?  Perhaps.  But who was going to 
authorize copying the ten years worth of files on magnetic tape that
would have been necessary to preserve the historical continuity of this
database?

Richard Riehle
http://www.adaworks.com

     
  




  reply	other threads:[~1999-11-09  0:00 UTC|newest]

Thread overview: 128+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-29  0:00 Help help.. please.i am totaly new in ada programing vico
1999-10-29  0:00 ` Matthew Heaney
1999-10-29  0:00   ` Gautier
1999-10-29  0:00     ` Tucker Taft
1999-10-29  0:00       ` Jean-Pierre Rosen
1999-10-29  0:00     ` Matthew Heaney
1999-10-30  0:00       ` Dave Taylor
1999-10-30  0:00         ` gnat on macintosh James E. Hopper
1999-10-30  0:00           ` Larry Kilgallen
1999-10-30  0:00             ` James E. Hopper
1999-10-31  0:00       ` Help help.. please.i am totaly new in ada programing Robert Dewar
1999-10-30  0:00     ` Siow Wey Hua
1999-10-29  0:00       ` David Starner
1999-10-31  0:00         ` Robert Dewar
1999-10-29  0:00       ` Matthew Heaney
1999-10-31  0:00       ` Robert Dewar
1999-10-31  0:00     ` Robert Dewar
1999-11-01  0:00       ` Gautier
1999-11-02  0:00         ` Robert Dewar
1999-11-02  0:00           ` Ted Dennison
1999-11-02  0:00             ` Aidan Skinner
1999-11-03  0:00               ` Robert Dewar
1999-11-02  0:00             ` Robert Dewar
1999-11-02  0:00               ` Ted Dennison
1999-11-03  0:00             ` Free Software -- was, " Richard D Riehle
1999-11-02  0:00           ` Gautier
1999-11-02  0:00             ` Robert Dewar
1999-11-02  0:00               ` tmoran
1999-11-02  0:00                 ` Robert Dewar
1999-11-03  0:00                   ` tmoran
     [not found]                     ` <01bf25cc$5d390fc0$022a6282@dieppe>
1999-11-03  0:00                       ` Georg Bauhaus
1999-11-04  0:00                         ` David Botton
1999-11-03  0:00                     ` Georg Bauhaus
1999-11-03  0:00                       ` tmoran
1999-11-03  0:00                         ` Robert Dewar
1999-11-04  0:00                           ` tmoran
1999-11-04  0:00                             ` Charles Hixson
1999-11-04  0:00                               ` tmoran
1999-11-05  0:00                                 ` Robert Dewar
1999-11-08  0:00                                 ` Georg Bauhaus
1999-11-08  0:00                                   ` Robert Dewar
1999-11-05  0:00                             ` Robert Dewar
1999-11-04  0:00                         ` Georg Bauhaus
1999-11-03  0:00                     ` Preben Randhol
1999-11-03  0:00                       ` Robert Dewar
1999-11-03  0:00                         ` Confusing language, was " tmoran
1999-11-03  0:00                           ` Robert Dewar
1999-11-04  0:00                             ` Richard D Riehle
1999-11-05  0:00                               ` Robert Dewar
1999-11-04  0:00                             ` tmoran
1999-11-04  0:00                               ` David Starner
1999-11-04  0:00                                 ` tmoran
1999-11-04  0:00                                   ` Aidan Skinner
1999-11-05  0:00                                     ` Craig Spannring
1999-11-05  0:00                                       ` Stefan Skoglund
1999-11-06  0:00                                         ` Robert Dewar
1999-11-05  0:00                                       ` Robert Dewar
1999-11-04  0:00                                   ` Hyman Rosen
1999-11-04  0:00                                   ` David Starner
1999-11-05  0:00                                   ` Robert Dewar
1999-11-09  0:00                                   ` Robert A Duff
1999-11-10  0:00                                     ` tmoran
1999-11-04  0:00                               ` Ted Dennison
1999-11-05  0:00                               ` Stefan Skoglund
1999-11-06  0:00                                 ` tmoran
1999-11-06  0:00                                   ` Robert Dewar
1999-11-08  0:00                                 ` Tarjei Jensen
1999-11-08  0:00                                   ` Robert Dewar
1999-11-09  0:00                                     ` Tarjei Jensen
1999-11-09  0:00                                       ` Y2K liability, was " tmoran
1999-11-09  0:00                                       ` Robert Dewar
1999-11-08  0:00                                   ` Robert Dewar
1999-11-08  0:00                                     ` Marin Condic
1999-11-08  0:00                                       ` Ehud Lamm
1999-11-09  0:00                                         ` Robert I. Eachus
1999-11-09  0:00                                           ` Ehud Lamm
1999-11-09  0:00                                       ` Robert A Duff
1999-11-09  0:00                                         ` Robert Dewar
1999-11-09  0:00                                         ` Marin Condic
1999-11-09  0:00                                           ` Richard D Riehle [this message]
1999-11-10  0:00                                             ` Robert A Duff
1999-11-10  0:00                                               ` Richard D Riehle
1999-11-11  0:00                                                 ` Robert Dewar
1999-11-11  0:00                                                   ` Robert A Duff
1999-11-11  0:00                                                 ` Robert Dewar
1999-11-11  0:00                                                   ` Robert A Duff
1999-11-11  0:00                                               ` Robert Dewar
1999-11-11  0:00                                                 ` Robert A Duff
1999-11-12  0:00                                                   ` Robert Dewar
1999-11-11  0:00                                               ` Robert Dewar
1999-11-11  0:00                                                 ` Marin Condic
1999-11-12  0:00                                                   ` Robert Dewar
1999-11-12  0:00                                                     ` Marin Condic
1999-11-13  0:00                                                       ` Robert Dewar
1999-11-12  0:00                                                     ` Marin Condic
1999-11-19  0:00                                                     ` GNAT.Calendar (was: Re: Confusing language, was Re: Help help.. please.i am totaly new in ada programing) Mario Amado Alves
1999-11-19  0:00                                                       ` Robert Dewar
1999-11-12  0:00                                                 ` Confusing language, was Re: Help help.. please.i am totaly new in ada programing Robert I. Eachus
1999-11-12  0:00                                                   ` Marin Condic
1999-11-13  0:00                                                   ` Robert Dewar
1999-11-13  0:00                                                     ` Nick Roberts
1999-11-15  0:00                                                       ` Samuel T. Harris
1999-11-15  0:00                                                     ` Ted Dennison
1999-11-15  0:00                                                       ` Robert Dewar
1999-11-10  0:00                                           ` Confusing language etc Nick Roberts
1999-11-11  0:00                                             ` Robert Dewar
1999-11-05  0:00                         ` Help help.. please.i am totaly new in ada programing Stefan Skoglund
1999-11-05  0:00                           ` Larry Kilgallen
1999-11-03  0:00                     ` Robert Dewar
1999-11-03  0:00                       ` Georg Bauhaus
1999-11-03  0:00                         ` Robert Dewar
1999-11-04  0:00                           ` Georg Bauhaus
1999-11-05  0:00                             ` Stefan Skoglund
1999-11-04  0:00                       ` Stanley R. Allen
1999-11-05  0:00                         ` Stefan Skoglund
1999-11-02  0:00             ` Robert Dewar
1999-11-02  0:00               ` Ted Dennison
1999-11-02  0:00                 ` Robert Dewar
1999-11-02  0:00                   ` Ted Dennison
1999-11-03  0:00                   ` Larry Kilgallen
1999-11-03  0:00                     ` Robert Dewar
1999-11-03  0:00                       ` Larry Kilgallen
1999-11-03  0:00                         ` Robert Dewar
1999-11-02  0:00               ` Gautier
1999-11-03  0:00               ` Aidan Skinner
1999-11-03  0:00                 ` Robert Dewar
1999-11-01  0:00       ` Tucker Taft
1999-10-29  0:00   ` David Botton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox