News for hackers. Stuff that matters.
Re:Learning COBOL: A Journey for the Modern Programmer by jhbadger on Wednesday April 07, 2021 @10:15PM (#26734331)
I found it interesting that the author found COBOL's use of line numbers strange and chalked it up to its origin in the punch card era. While that may have been part of it, those of us who learned programming via BASIC in the 1980s were very used to line numbers even though we never saw a punch card.
Re:Learning COBOL: A Journey for the Modern Programmer by dragonwriter on Wednesday April 07, 2021 @10:20PM (#26734377)
> I found it interesting that the author found COBOL's use of line numbers strange and chalked it up to its origin in the punch card era. While that may have been part of it, those of us who learned programming via BASIC in the 1980s were very used to line numbers even though we never saw a punch card.

BASIC is also from the punch card era; it is only 5 years newer than COBOL (1964 vs 1959).

Re:Learning COBOL: A Journey for the Modern Programmer by jhbadger on Wednesday April 07, 2021 @11:10PM (#26734679)
BASIC was designed as an interactive language on the Dartmouth Timesharing System rather than batch, though. It was assumed that the user was at a terminal (probably a teletype given the era) and could interact in real time with the computer rather than punching cards to be handed to an operator and receiving output later. The line numbers were there to aid editing code as a replacement line could be entered using the same line number as an existing line. This tradition carried into the home computers of the 1980s as they generally didn't use text editors as we know them for editing BASIC code.