3 ms·
The article notes that, "before 2002, COBOL didn’t support comments" and later observes, "It’s also very clear and stable, and a non-technical person can easily
by cratermoon 4y ago
The article notes that, "before 2002, COBOL didn’t support comments" and later observes, "It’s also very clear and stable, and a non-technical person can easily read the code and figure out what it does".
The inventors of COBOL were keen on the "non-technical person" being able to understand the code. What they may not have valued or understood at the time was the need for future people "to understand who, why and how someone made that choice in the 60s". Largely, it was simply a matter of optimizing for space on the computer's storage media. In other words, saving punch cards. It was the practice at the time to keep the documentation, printed on paper, and the cards together.
Why create all those punch cards that the compiler is going to ignore, when you can simply use regular paper? Card punches and readers were finicky. Readers could only read so fast, and while they got faster and more reliable over time, in no universe were they going to match even a slow medium like 9-track tape.