• ThePowerOfGeek@lemmy.world
    link
    fedilink
    English
    arrow-up
    145
    ·
    edit-2
    5 days 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
      arrow-up
      47
      ·
      5 days 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.

    • criss_cross@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      5 days 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
        arrow-up
        2
        ·
        4 days 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.

    • Boomer Humor Doomergod@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      5 days 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”

  • normalexit@lemmy.world
    link
    fedilink
    English
    arrow-up
    24
    ·
    edit-2
    4 days ago

    I’ve worked on teams converting legacy code for most of my life. The planning for something like this would take longer than six months.

    If this proceeds in Trump’s corrupt government, Elon will get the contract, will claim it is too broken to salvage, and will privatize it. The only way this goes anywhere is if Trump and musk stand to gain money, and they stand to gain a lot.

    • misteloct@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      4 days ago

      If they planned a 1 month migration of a small component, 6 months to complete would be pretty lucky imo. Refactoring Legacy Code mentions the 2.0 approach they’re taking. Spoiler alert, it doesn’t work…

  • FauxLiving@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    4 days ago

    They’re really playing with fire here.

    So many MAGA supporters are seniors who are entirely dependent on OASDI. If Trump’s minions break this, we’re going to see torches and pitchforks strapped to electric scooters and golf carts coming out of Florida retirement communities in droves.

      • monkeyman512@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 days ago

        The reason is that it takes a lot of emotional intelligence and strength to admit that you have been scammed. These people will find it less emotionally painful to deny reality then admit their mistakes.

    • orcrist@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Yes. They need to move quickly. Public opinion is already shifting against Trump and Musk, and right now they are vulnerable.

  • Suite404@lemmy.world
    link
    fedilink
    English
    arrow-up
    27
    ·
    4 days ago

    This is like a new programmer coming in to their new job, seeing the code isn’t perfect and saying they could rebuild the entire thing and do it better in a month.

    • oppy1984@lemm.ee
      link
      fedilink
      English
      arrow-up
      11
      ·
      4 days ago

      I’m sure the doge boys are expert grock vibe coders, it will be fine, they’ve got big ballz on the team, what could possibly go wrong? /s

    • Treczoks@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      4 days ago

      I did such a thing, but I had a big advantage: the codebase had been done by people who had never really learned to code, and I was a seasoned programmer with 20 years of experience.

    • rottingleaf@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      That happens. Even if said new programmer had seen before that IRL the important part of that codebase consists of specific domain area quirks, scarcely documented and understood. They have an advantage in doing something good for the specific stage of that system’s evolution, but a huge disadvantage in knowing what the hell it really does.

  • Crashumbc@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    ·
    5 days ago

    These comments are completely missing the truth.

    They have zero intention of rebuilding anything, this is just an excuse to destroy SSA …

  • ZILtoid1991@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    4 days ago

    In theory, it wouldn’t be a necessarily bad idea to port the COBOL code to something more modern, but I cannot trust Muskrat and a few vibe coder youngsters with this task.

    • 800XL@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      4 days ago

      Bro. Check it out bro, we’re gonna like make it this dope Electron app, bro. It’ll interface with X, bro and everyone will have to login there to get their money, bro. Don’t worry tho, you’ll get paid in recession-proof Trumpbux crypto currency as long as you claim it in time. But X gets a fee of 60% bro.

      Seriously bro we like hired a bunch of grads that took a one week X created code boot camp that like you know revolved around a language big balls created called “cyber coin purse++”. On second thought bro we’re rewriting it in that. Should be like 2 weeks to rewrite it cuz old people wrote the current code and they’re like old or whatever bro. Like I live in an old person’s basement and they’re just like old, bro.

  • samuelazers@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    4 days ago

    step 1. rewrite into spaghetti code

    step 2. nobody understands the new code, so the govt has to contract elon musk for code maintenance forever

    step 3. profit

  • Gerudo@lemm.ee
    link
    fedilink
    English
    arrow-up
    21
    ·
    5 days ago

    Months? I don’t k ow how to code, and even I know that’s impossible.

    • futatorius@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      I know how to code, how to manage programs, how to architect huge safety-critical systems, and quite a few other things, and I know that you are right. I’d give it 5 to 7 years if it were adequately resourced, there was political commitment, and the stakeholders could be made to agree a set of requirements, then not change them unless there’s a really convincing reason (conflicts with other requirements, impossible to implement, breaks everything, etc).

      And the validation and verification of such a system could itself take a year or more, if it’s well-planned and correctly executed.

  • شاهد على إبادة@lemm.ee
    link
    fedilink
    English
    arrow-up
    10
    ·
    4 days ago

    COBOL is perfectly suitable for financial purposes for which it was designed. The SSA code has gone through decades worth of changes and improvements that cannot be replicated even in 10 years.

    • futatorius@lemm.ee
      link
      fedilink
      English
      arrow-up
      6
      ·
      4 days ago

      COBOL is perfectly suitable for financial purposes for which it was designed.

      Nobody uses COBOL for greenfield projects, even in the banking and financial sectors. And, as people with COBOL expertise die of old age, it becomes increasingly unmaintainable.

      • شاهد على إبادة@lemm.ee
        link
        fedilink
        English
        arrow-up
        6
        ·
        4 days ago

        I bet is cheaper to teach it to new programmers than to rewrite old software. Just because a language is old doesn’t mean it is unlearnable or that software written in it needs to be rewritten.

  • Dzso@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    4 days ago

    This clusterfck has me seriously considering whether taxes are quite as certain as death anymore.