I’m imagining as years go by when/if this AI regex code breaks - nobody knows how it works or how to fix it. Am I wrong?

I’m not a programmer and I write shitty code but I can manage to write simple regex to create quick and dirty code. That’s a terrible programming choice I know but I never share my code. It’s just for me and it works.

  • stink@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    10 days ago

    It doesn’t, and when it does it’s incredibly inefficient. 1000+ steps to find something compared to ~30 steps a competent person would write.

    • invalidusernamelol [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 days ago

      I use it when I want to use a regex find and replace in a file and then I double check the results. Efficiency doesn’t matter for one offs.

      Rolling it into some mission critical production code without rigorous testing and optimization is bad though. See Cloudflare’s regex fuckup that took them offline for like a whole day.