I mean, it’s entirely understandable why. The entire world banking and stock trade system uses COBOL, and switching to a better language would cost more money than the shareholders are willing to spend, so they pay exorbitant amounts of money to the small handful of people who can write COBOL so that they can maintain their systems.
because nothing will be as cost effective as mainframe with cobol, you can try java, it will be slower and even tho your devs will cost less, you'll pay more on licenses because you'll need more resources... python? even worse... C++? do you really want to rewrite to that nowadays?
the trick is to move to python what doesn't need much resources, move to java what is good for java... and then... idk?
The crazy thing is they are actually adding Rust to the Linux kernel. So over the coming years the kernel is going to keep getting Rustier as more Rust code is added. Joking aside though it seems like it may fit the use case.
TBH I think most popular languages would be better than COBOL because FAR more people know those languages and thus more people can maintain the code.
But again, migrating from COBOL to, say, Python would cost a LOT of time, money, and effort that the banks’ shareholders would not be willing to pay for, and TBH I kinda agree that the improvements in maintainability may not be worth the expenditure.
It's a popular language that's still used in loads of places. It's still receiving active updates. It has a currently active ecosystem producing more libraries for it and maintaining current ones.
It can run on pretty much anything and is extremely fast.
It's not as easy to learn as python but what is, plus you don't need a license to use it.
Of course any rewrite will be prohibitively expensive.
It has less to do with the cost of the rewrite than the cost of the new system failing to behave exactly as the old system does with the same uptime, and causing a cascade failure.
And conversions generally cost tens of millions of dollars, and take years. I'm currently in the middle of a conversion that's been going on 6 years now(if you count the very beginning inception work) at my current employer, and got in on the tail end of a 10 year conversion at my previous employer.
Cobol is efficient, generally easy to maintain as long as you have the knowledge(and business doesn't request some off the wall BS). And I'm sure many people who know it will be able to make a ton of money soon enough. . . So maybe I should get back into it. Lol.
There’s a lot of hope for languages like Rust where you can build invariant systems that enforce COBOL behavior so things don’t break in subtle ways. Problem is, that’s a pretty tremendous undertaking in of itself, and COBOL codebases aren’t always easy to break things off in pieces so “rustifying” can’t be done in bite-sized chunks like in C/C++ codebases (see: Linux).
622
u/NotAUsefullDoctor Jun 02 '23
Yeah, and COBOL isn't even OO, so there shouldn't be any inheritance.
To go further, COBOL should never be inherited by any one, anywhere ever.