Re: Cobol work?



"John Culleton" <john@xxxxxxxxxxxxxxxx> wrote in message
news:OZadnYRVUOPeKcveRVn-ig@xxxxxxxxxxxxxxx
> COBOL encourages the use of meaningful names, and other languages, at
> least
> the way they are usually taught, don't.

I'm not sure what you mean by this; I've never heard a computer science
teacher say "Don't use meaningful names", while I have heard several
computer science teachers say "(Do) use meaningful names". Some of then even
go so far as to take off marks if your program is "difficult to understand"
in their (incontestable) opinion.

> COBOL also encourages meaningful internal documentation, starting with the
> (original) IDENTIFICATION DIVISION. Other languages have commenting
> mechanisms, but those languages are neutral on the subject. And internal
> documentation is not part of the usual teaching method.

This is true. For many languages I'm familiar with, a documentation
system is usually processed by a third party application, and not the
compiler (e.g. JavaDoc, Doxygen, C#'s XML documentation system, etc.)
However, it seems that the developper's toolset is moving more and more
towards intelligent IDEs, where it starts to become difficult to know where
one tool (e.g. the compiler) ends and another (e.g. the documentation
processor) begins.

> So IMO culture as much as specific capabilities encourages readable COBOL.
> That was a principal goal of GMH when she conceived the language.

As an aside, I was surprised to discover that there actually did exist a
language which seemed to DIScourage meaningful names: The GPSS language had
"arbitrary" lengths for function names and variable (I forget the exact
figures, but it was something like all names had to be between 4 and 8
characters long), and restrictions such as variables whose type were integer
had to start with either I, J or K, and variables whose type were real had
to start with X, Y or Z (all other variables were assumed to be Strings).

I say "arbitrary", but the reason laid in the fact that GPSS programs
were originally written on fixed-grid cards, with column-based areas like
COBOL.

Assuming you wanted an integer, after the I/J/K, you only had 7
characters left with which to name the variable, so variable names were very
rarely meaningful in GPSS programs I've seen and written. To make up for it,
my GPSS programs were often documented liberally. In fact, the combined size
of just the comments often exceeded the size of the code itself.

- Oliver


.



Relevant Pages

  • Re: Theodore Adorno, a prophet of data systems design
    ... Hey, goose man. ... >> especially those who cling to outdated languages. ... Buddy of mine wrote an efficient chess program in Cobol to demonstrate ... Levine the Genius Tailor says, "no problem, just hold your arm like ...
    (comp.programming)
  • Re: Gartner on Assessing the Age of Software Languages and Tools
    ... with no mainframe COBOL at all, ... And general-purpose computers running general-purpose applications are a ... movement in general programming toward better ... But are these pockets of "old time languages" significant in a global ...
    (comp.lang.cobol)
  • Re: Could this save COBOL?
    ... I am personally of the opinion that any languages not supporting the OO ... paradigm will be gone within 10 years, and that includes COBOL, unless it is ... OO COBOL running in the Dot NET environment could have a real chance of ... If the lifeblood of COBOL is going to be 1960s code in a mainframe ...
    (comp.lang.cobol)
  • Re: Is there a mainframe skills shortage?
    ... That's because the author of the article is comparing it to standard SQL. ... and material around Lamdas and functional programming. ... obvious which languages were the ones to learn. ... stick to writing system software and leave applications to the COBOL ...
    (comp.lang.cobol)
  • Re: Cobol News - Microfocus and AcuCOBOL
    ... I think they are the languages of today. ... I disagree strongly about problems for the programmer. ... It is a hard concept for COBOL people to grasp.. ... functionality comes along, it inherits what is there already and extends it. ...
    (comp.lang.cobol)