this post was submitted on 20 May 2024
201 points (96.3% liked)

Programmer Humor

32479 readers
495 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.cringecollective.io/post/9716

Maybe some ALGOL 58 while we're at it too.

you are viewing a single comment's thread
view the rest of the comments
[–] mesamunefire@lemmy.world 41 points 5 months ago (3 children)

COBOL is actually not that bad. It can work with SQL, it can have unit testing/integration testing. It can even go on the web (LOL).

But in all seriousness, the bad part about COBOL is lack of context. Most code that is in COBOL has not been touched in decades. And no one is willing to modify because of serous consequences (AKA job ruining errors) that can occur.

I worked with it in insurance and transportation. In both cases, the COBOL was actually pretty solid...but we didnt know WHY we were doing the operations.

[–] cerement 14 points 5 months ago (3 children)

the old languages still have their fans – and COBOL, Fortran, Ada, and Lisp are still holding strong in their respective niches

[–] someacnt_@lemmy.world 20 points 5 months ago (1 children)

Lisp has always been the future >.>

[–] listless@lemmy.cringecollective.io 14 points 5 months ago

And tomorrow is always just a day away.

[–] Deebster@programming.dev 13 points 5 months ago (1 children)

Lisp variants like Clojure are being used for new projects (e.g. Logseq) but I'd be surprised to hear of anyone choosing COBOL for a greenfield project.

[–] mesamunefire@lemmy.world 10 points 5 months ago* (last edited 5 months ago)

Yeah the only reason someone should learn COBOL is job security and potentially making a living moving things over. No reason to start a project in the lang. You can make flat files into ODBCs nowadays.

I suppose the ability to be left alone because everyone is afraid the COBOL person leaves and the company goes under is a good reason :)

[–] kryptonianCodeMonkey@lemmy.world 6 points 5 months ago (1 children)

I took a principles of programming languages course a while back and got to touch on a lot of these old languages. My professor had huge hard-on for Lisp. Don't get me wrong. The simplicity of the language is admirable. But reading and parsing that shit gave me headaches. No me gusta.

[–] cerement 6 points 5 months ago

I think I was the reverse, I found it easier wrapping my mind around Scheme than C …

[–] Ephera@lemmy.ml 2 points 5 months ago

But didn't they have to retrofit structured programming into COBOL? As in if-else, loops etc. didn't exist in COBOL originally, it was all just GOTO.

I guess, what I'm asking is: Does "not that bad" mean still pretty awful, but perhaps not as awful as one would expect for its age...?