5 ms·
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?
- mikewarot 5y agoCaution I'm not, nor have I ever been, a COBOL programmer... I'm an old Pascal programmer with a strong opinion, trying to provide an answer. 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.
- mchelpa 5y agoI’d say ABAP and T-SQL are quite similar.
- deleted 5y ago[deleted]
- rurban 5y agoADA maybe. But "Why COBOL programmers refuse Ada" https://dl.acm.org/doi/10.1145/255471.255587 https://dl.acm.org/doi/10.1145/255471.255587 COBOL is pure spaghetti, ADA is pure structured code.
- karmakaze 5y agoTo be a good replacement, it has to work in as many of the same environments with their constraints. It needs to have the same kinds of number types (e.g. BCD with fixed decimals) It needs to be able to call into machine language routines/libraries. 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.
- karmakaze 5y agoIf I were to design a language to fill this role, it would be roughly like Python with static types and compiled to a binary. And opensource backed/developed by a major enterprise software provider, MS, IBM, etc.
- hollerith 5y agoCOBOL was well-suited to poorly-paid programmers. In IBM shops -- and inside IBM -- programming was viewed as a clerical occupation and was compensated accordingly.
- musicale 5y agoHow usable is Java's support for decimal arithmetic? IIRC IBM processor architectures like Power have decent BCD support as well.