What modern programming language is the best replacement for COBOL
What features of cobol made it ideal for business programming ? Which modern programming language has similar features?
(
7 comments
| 10 points
| on HN
)
The main feature of COBOL when it started was that it didn't require the programmer to write in machine code. Since then, like any programming language, various implementations were better optimized for the programmers than others. If you have a large COBOL program, it likely is very old, and contains decades of knowledge, and any effort to port it to another language will involve the painful process of rediscovering all those decades worth of assumptions and conclusions.
As for features, it was good at processing RECORD based information. with nested structures in those records.
I think the best language to replace COBOL is COBOL. The newer versions are nothing like the original ones. I've written Windows and OS/2 GUI programs using the Win16/32 and OS/2 PM APIs from COBOL in the 90s and I'm sure there's been more progress in the language since.
But "Why COBOL programmers refuse Ada" https://dl.acm.org/doi/10.1145/255471.255587
COBOL is pure spaghetti, ADA is pure structured code.
IIRC IBM processor architectures like Power have decent BCD support as well.