• rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    10
    ·
    5 hours ago

    I watched a team invent a new language to get around updating some eccentric code.

    They could have sat down and commented it and made their changes

    They could have refactored what was there.

    They could have scrapped it and wrote fresh

    Instead, they designed an entire natural language system so that non-programmers who were writing in XML could just write in English.

    They ended up making so many required keywords as helpers that the non-programmers kept using the old system because the XML was easier for them work with.

    Note: wasn’t my code, wasn’t my dept, when I heard the plan I went to check it out, the old system was functional but like C- work at best. At some point, they wrote a compiler for the new system.

    • applebusch@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 hours ago

      inventing a new language is almost never the right solution. there was a guy at my last job who tried to do this pretty much every time he ran into a problem with some shitty legacy software he had to work with. rather than take the time to fix it to do what he needed, he took ten times longer to slap another layer of custom bullshit on top of it. ultimately it came down to him being a really shitty engineer too afraid to change existing code, too lazy to do his due diligence, just clever enough to implement a shitty workaround, but not clever enough to realize how shitty it was. everything he made barely worked, was way overcomplicated, and no one else even wanted to try to learn his arcane bullshit syntax.

      • rumba@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 hour ago

        We do all look at code, get immediately annoyed that it doesn’t just make sense. most of us at least have the wherewithal to stick with it and work on the engine as it sits :)

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        4 hours ago

        In the 80s. If you look at what your examples have in common, you’ll notice you’ve heard it in the 80s.

        Too bad 80s nostalgia is all the hype nowadays, but at least this seems to be passing in other subcultures. I really hope it passes in software development too.

        • lime!@feddit.nu
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          only one of the ones i linked is from the 80s. i think you’ll find the majority are from the 50s.