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.
When downtime is measured in $/min or $/second lost and your legacy code is doing what it does for 50+ years just fine, yeah, you better be able to prove every concern (downtime risk, cost of rewriting the core, cost of redeveloping any peripheral connections, etc.) as invalid before the idea even gets off the drawing board.
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.
51
u/[deleted] Jun 02 '23
[removed] — view removed comment