this post was submitted on 10 Jun 2023
204 points (100.0% liked)

Programmer Humor

32361 readers
491 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] TAG@lemmy.world 3 points 1 year ago (3 children)

Mission critical code. There are decades of bug fixes. The biggest cost of rewriting it is a risk of errors in the logic.

[–] darkfiremp3@beehaw.org 1 points 1 year ago (2 children)

I can understand that, the fear of moving and the logic being ruined. I wonder how much modern frameworks could cut down the codebase though

[–] TAG@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

Modern frameworks don't help with business logic corner cases. You would want to carefully analyze the algorithms of the legacy code and rewrite same logic in a new language. Even then, the same logic operators don't work the same in every language (automatic type conversions, truthiness of non-boolean types).

[–] shadowolf@lemmy.ca 1 points 1 year ago

Outside of looking a Cobol once or twice I have almost zero working knowledge of the language. But still this feels like something a transpiler could handle. Or maybe a next gen LLM if direct translation of the source isn't desirable but just the core logic