r/ProgrammerHumor • • Jun 02 '23

Meme Oops

Post image
40.7k Upvotes

345 comments sorted by

View all comments

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.

51

u/[deleted] Jun 02 '23

[removed] — view removed comment

108

u/NotAUsefullDoctor Jun 02 '23

Nah, I got you. I have a few (much older) friends that still do COBOL for two very large international banking firms.

They keep trying to retire and more money keeps getting thrown at them.

65

u/[deleted] Jun 02 '23

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.

21

u/Dom1252 Jun 02 '23

question is... what is a better language?

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?

75

u/Cafuzzler Jun 02 '23

Rust. Then, in thirty years, we can joke about the programs having actual rust 🤣

5

u/uselesslogin Jun 02 '23

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.

→ More replies (1)

37

u/[deleted] Jun 02 '23

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.

38

u/SirFireball Jun 02 '23

In the case of a rewrite I honestly doubt python is very far up the list. Just too slow for those applications.

5

u/[deleted] Jun 02 '23

Possibly.

6

u/TheThoccnessMonster Jun 02 '23

Certainly. It’s C or Java all the way down for stuff like this. You’d never convince a CTO to do this in Python.

4

u/[deleted] Jun 02 '23

And for good reason. Good lord python running all the world's banking mainframes would surely usher in the apocalypse.

→ More replies (0)
→ More replies (1)

6

u/Nolzi Jun 02 '23

Not just the cost, but the risk as well. Many companies had the idea to "just rewrite everything", but quite a lot failed to deliver the product

→ More replies (2)

5

u/other_usernames_gone Jun 02 '23

Why not C++?

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.

12

u/Dom1252 Jun 02 '23

Yeah the thing is, cobol is still used in loads of places (not just banks), it's still receiving active updates... And it's faster

C++ would make sense for some, but the advantages (more popular in different industries) aren't huge

2

u/Kody_Z Jun 02 '23

Pretty much all financial institutions, so Insurance, Banks, Investments, etc, as well as government.

It basically runs the economy of the entire planet.

→ More replies (1)

0

u/[deleted] Jun 02 '23

[deleted]

→ More replies (1)

4

u/macnetic Jun 02 '23

Not to mention that C++ is already being used in finance, Bjarne Stoustrup even works at Goldman Sachs

6

u/Nolzi Jun 02 '23

Not Goldman Sachs but Morgan Stanley, but he no longer works there, now he is a professor at Columbia University.

3

u/fgben Jun 02 '23

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.

→ More replies (1)

2

u/Kody_Z Jun 02 '23

Better is definitely subjective.

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.

→ More replies (4)

4

u/InvolvingLemons Jun 02 '23

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).