• ThePowerOfGeek
    link
    fedilink
    English
    209
    edit-2
    2 months ago

    Ah yes, a classic tale…

    “We’re going to take this perfectly efficient and functional COBOL code base and rewrite it in Java! And we’ll do it in a few months!”

    So many more competent people and organizations than them have already tried this and spectacularly crashed and burned. There are literal case studies on these types of failed endeavors.

    I bet they’ll do it in Waterfall too.

    It’s interesting. If they use Grok, this could well be the deathknell for vibe programming (at least for now). It’s just fucking tragic that their hubris will cause grief and pain to so many Americans - and cost the lives of more than a few.

    Edit: Fixed some typos.

    • @BrianTheeBiscuiteer@lemmy.world
      link
      fedilink
      English
      672 months ago

      Jokes aside, nothing wrong with rewriting in Java. It is well-suited for this kind of thing.

      Rewriting it in anything without fully understanding the original code (the fact they think 150yo are collecting benefits tells me they don’t) is the biggest mistake here. I own codebases much smaller than the SSA code and there are still things I don’t fully understand about it AND I’ve caused outages because of it.

      • @digipheonix@lemmy.dbzer0.com
        link
        fedilink
        English
        452 months ago

        No. Java is not suited for this. This code runs on mainframes not some x86 shitbox cluster of dell blades. They literally could not purchase the hardware needed to switch to java in the timeline given. I get what you’re trying to say but in this case Java is a hard no.

      • @deranger@sh.itjust.works
        link
        fedilink
        English
        212 months ago

        Non programmer but skilled with computers type guy here: what makes Java well suited for this?

        This is probably an incorrect prejudice of mine, but I always thought those old languages are simpler and thus faster. Didn’t people used to rip on Java for being inefficient and too abstracted?

        Last language I had any experience with was C++ in high school programming class in the early 2000s, so I’m very ignorant of anything modern.

        • nfh
          link
          fedilink
          English
          102 months ago

          The way Java is practically written, most of the overhead (read: inefficient slowdown) happens on load time, rather than in the middle of execution. The amount of speedup in hardware since the early 2000s has also definitely made programmers less worried about smaller inefficiencies.

          Languages like Python or JavaScript have a lot more overhead while they’re running, and are less well-suited to running a server that needs to respond quickly, but certainly can do the job well enough, if a bit worse compared to something like Java/C++/Rust. I suspect this is basically what they meant by Java being well-suited.

        • @flamingo_pinyata@sopuli.xyz
          link
          fedilink
          English
          92 months ago

          I am a programmer but I’m not sure why people think Java is suited for anything, especially a system so sensitive to bugs. It’s so hard to write high quality readable code in Java. Everything is way more clunky, and verbose than it needs to be.

          Some major improvements were made with versions 17+ but still, it feels like walking through mud.

          It’s a language from the 1990s for the 1990s.

          Btw the performance is actually pretty good in Java, the old reputation for slowness is entirely undeserved today.

          • @BrianTheeBiscuiteer@lemmy.world
            link
            fedilink
            English
            62 months ago

            It’s a verbose language but I don’t know if there’s any real language that encourages highly readable code beyond low-level syntax. You want to create a God-class in Python with nonsensical variables and 5 levels of nesting? The language won’t stop you.

        • @BrianTheeBiscuiteer@lemmy.world
          link
          fedilink
          English
          32 months ago

          Other than hardware issues, which someone else mentioned, it has a lot of enterprise-grade functionality that make it more secure and auditable than a lot of other languages. And despite, or maybe because of, its large memory footprint it’s actually faster than most languages.

          I totally get any hate about writing Java though. It is a verbose language. Using Kotlin instead helps with that.

    • @criss_cross@lemmy.world
      link
      fedilink
      English
      182 months ago

      I’ve worked on these “cost saving” government rewrites before. The problem is getting decades of domain logic and behavior down to where people can be productive. It takes a lot of care and nuance to do this well.

      Since these nazi pea brains can’t even secure a db properly I have my doubts they’ll do this successfully.

      • @gedhrel@lemmy.world
        link
        fedilink
        English
        22 months ago

        Not just domain logic. The implementation logic is often weird too. Cobol systems have crash/restart behaviour and other obscure semantics that often end up being used in anger; it’s like using exceptions for control flow, but exceedingly obscure and unfortunately (from what I’ve seen of production cobol) a “common trick” in lots of real-world deployments.

    • @ricecake@sh.itjust.works
      link
      fedilink
      English
      112 months ago

      It’s worth noting that one of those organizations is IBM. Mostly relevant because they’re the ones that originally built a lot of that cobol, the mainframes it runs on, and even the compilers that compiled it.
      They’re basically the people you would expect to be able to do it, and they pretty quickly determined that the cost of a rewrite and handling all the downstream bugs and quirks would exceed the ongoing maintenance cost of just training new cobol developers.

      My dad was a cobol developer (rather, a pascal developer using a compiler that transpiled to cobol which was then linked with the cobol libraries and recompiled for the mainframe), and before he retired they decided to try to replace everything with c#. Evidently a year later their system still took a week to run the nightly reports and they had rehired his former coworkers at exorbitant contractor rates.

    • Boomer Humor Doomergod
      link
      fedilink
      English
      102 months ago

      Functional, yes. But rarely are these sorts of things efficient. They’re covered in decades of cruft and workarounds.

      Which just makes them that much harder to port to a different language. Especially by some 19 year old who goes by “Big Balls”

    • @DJKJuicy@sh.itjust.works
      link
      fedilink
      English
      102 months ago

      I bet they’ll do it in Waterfall too.

      Nah B. This will be Extreme Agile XP with testing exclusively in Prod. Xitter will be the code repository.

      • ThePowerOfGeek
        link
        fedilink
        English
        72 months ago

        Pair programming with Grok.

        Spotty DOGE intern developer: “what’s a for loop?”

        Grok: “Look it up yourself, noob! Holy shit do I hate Elon Musk in every fucking way!”

    • @Clent@lemmy.dbzer0.com
      link
      fedilink
      English
      72 months ago

      Bold of you to assume they’ll use Java and not some obscure language picked based on the need to pad their resumes.

      • @acchariya@lemmy.world
        link
        fedilink
        English
        42 months ago

        We all know it’s going to be nodejs, backed up by mongodb. This is because LOC on the commits can be maximized for minimal effort, and it will need to be rewritten every 2-3 years.

      • @golden_zealot@lemmy.ml
        link
        fedilink
        English
        82 months ago

        It’s when people try to have LLM’s generate code and then try to assemble the pieces produced into semi-functional, usually really bad, software I think.

        • @Bogasse@lemmy.ml
          link
          fedilink
          English
          62 months ago

          And I think “vibe” means that they have no experience with programming so they can’t read the code they copy.