But COBOL is dead dead. Nobody writes it as a hobby. No company builds new projects with it. It's 100% in maintenance mode.
What happened that caused that?
I learned it in High School, and had to read it on a couple jobs while we were transitioning to another language (probably RPG/III, another dead dead language)
Modern languages are structured. Older languages like COBOL or BASIC, being unstructured, lead to what used to be called 'spaghetti code'.
https://en.wikipedia.org/wiki/Spaghetti_code
Unstructured code was deprecated in the 70s and 80s after the famous 'GOTO considered harmful' paper by Dijkstra.
https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.p...
COBOL's other 'drawback' was its verbose code. I use 'drawback' in quotes because I always found that its verbose nature meant you could pick up a COBOL program that you hadn't looked at for six months and immediately know what was going on.
example:
ADD WORK-HOURS TO OVERTIME-HOURS GIVING TOTAL-WEEK-HOURS.
rather than z = a + b;
Although, because of my COBOL experiences, I tend to do something like this: total_hours = work_hours + overtime_hours;
which is more wordy than normal C but more terse than COBOL.
https://en.wikipedia.org/wiki/Ashton-Tate
dBase programmers in the 80's were basically the target market for COBOL: in-house business applications built around a database, with a bit of UI.
In some ways dBase was the COBOL of the microcomputer revolution. It's similarly obtuse; it has all the appeal of COBOL.