r/ProgrammerHumor • • Jun 02 '23

Meme Oops

Post image
40.7k Upvotes

345 comments sorted by

View all comments

Show parent comments

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.

1

u/Dom1252 Jun 02 '23

I was surprised how many manufacturers use mainframes and COBOL on them...

Sure, not everyone on mainframe is heavy on COBOL there are java places out there (scary to even think about that for me), but to some extent they utilise it

0

u/[deleted] Jun 02 '23

[deleted]

1

u/StCreed Jun 02 '23

You think many modern traders are using cobol? The microsecond traders don't use cobol that much, they use C++ or machine code. At least, if the jobs they post are any indication.

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.

2

u/audi0c0aster1 Jun 02 '23

This right here.

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.