• TAG ( TAG@lemmy.world ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

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

      • TAG ( TAG@lemmy.world ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        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 ( shadowolf@lemmy.ca ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 years 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