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.

  • Mardoniush [she/her]
    ·
    edit-2
    25 days ago

    It'll work but AI generally makes workable code that looks well formed but is in fact undocumented spaghetti code.

    I would rely on it only for simple regex and even then only in non critical tasks. An AI is a particularly annoying intern and nothing more.

    Of course these idiots are gonna use it to refactor segments of 50 year old legacy code originally written in FORTRAN.

    Also you need to know regex for the same reason you need to know the fundamental theorem of calculus even though almost none ever needs it to actually solve anything.