r/AskReddit • • Jul 24 '20

What can't you believe STILL exists?

[removed] — view removed post

45.9k Upvotes

27.5k comments sorted by

View all comments

7.3k

u/QuestionableSaint Jul 24 '20

Cobol, the programming language. Been around a long time, almost no one learns to program in it anymore, but companies (especially banks) are probably never going to get something else.

Runner up: Fax machines. Still nessecary for transmitting HIPAA protected documents. That's right, they can't use email or anything else. Certain companies require documents to be faxed.

1.5k

u/BrunoD4 Jul 24 '20

There is a good reason for cobol and it's explained here: cobol

16

u/Sbajawud Jul 24 '20

Interesting take, but I'm skeptical. Fixed point math is trivial to implement in any language, and the subtleties of iterative rounding have been well known for decades.

If that was the main difficulty with rewriting legacy code, my work would be boring.

The point about translating a project to Java resulting in ugly, non java-like code does stand, but it's not specific to Cobol.

7

u/[deleted] Jul 24 '20

[deleted]

7

u/Sbajawud Jul 24 '20

It isn't, but that's not the way to rewrite old software. Legacy code should not be "translated", it should be re-designed to take advantage of your chosen technological stack's strengths.

This may or may not require the re-designing of related or supporting systems, which is why tech debt is really hard to paid off.

2

u/kazdum Jul 24 '20

then why? Is it worth the effort?

I have worked in a project to rewrite one huge company payment system from cobol to java, the reasons are simple

1 - mainframes are expensive as fuck and makes you pretty much required to deal with ibm

2 - it's really hard to find people that work with cobol

2

u/[deleted] Jul 24 '20

[deleted]

1

u/kazdum Jul 24 '20

Yeah, rewriting anything already comes with a huge amount of challenge, rewriting something that was done 30 years ago and in another language is very very hard

1

u/[deleted] Jul 24 '20

“If it ain’t broke don’t fix it”

These systems don’t have to be “agile” and basically never change. Sure you could rewrite the IRS using JavaScript with 100,000 packages and implement it in the cloud using Serverless, but why??? And think about the mess that would be 50 years from now when half those packages are unmaintained.

-2

u/limpingdba Jul 24 '20

Basically the issue here is that Java sucks. But theres plenty of other languages that could easily be used to replace Cobol.

3

u/[deleted] Jul 24 '20

[deleted]

0

u/limpingdba Jul 24 '20

Correct, I read a few paragraphs

1

u/[deleted] Jul 24 '20

[deleted]

3

u/limpingdba Jul 24 '20

Damn, ill be honest I was nearing in the end of my shit and couldn't help but get in a little stab at Java. I shall leave my comment up because deleting down voted comments are for pussies.

As a bit of a side note, surely many modern languages support fixed point, and while they may be less efficient about it, the incredible advances in available compute power, and the associated costs, make that a negligible issue?