86
submitted 3 weeks ago* (last edited 3 weeks ago) by InevitableSwing@hexbear.net to c/askchapo@hexbear.net

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.

you are viewing a single comment's thread
view the rest of the comments
[-] edge@hexbear.net 17 points 3 weeks ago

AI generated regex sounds absolutely horrible. There’s no way that shit would work.

[-] stink@lemmygrad.ml 4 points 3 weeks 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@hexbear.net 2 points 3 weeks 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.

this post was submitted on 01 Dec 2024
86 points (100.0% liked)

askchapo

22818 readers
193 users here now

Ask Hexbear is the place to ask and answer ~~thought-provoking~~ questions.

Rules:

  1. Posts must ask a question.

  2. If the question asked is serious, answer seriously.

  3. Questions where you want to learn more about socialism are allowed, but questions in bad faith are not.

  4. Try !feedback@hexbear.net if you're having questions about regarding moderation, site policy, the site itself, development, volunteering or the mod team.

founded 4 years ago
MODERATORS