• Ek-Hou-Van-Braai@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    1
    ·
    3 months ago

    I wish AI was never invented, but surely this isn’t ture.

    I’ve been able to solve coding issues that usually took me hours in minutes.

    Wish it wasn’t so, but it’s been my reality

          • Ek-Hou-Van-Braai@piefed.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 months ago

            No, but not everyone is a regex guru.

            If AI can write code half as good and fast as a regex guru, it’s going to increase the average dev’s productivity a lot

        • vrighter@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          yes they can. I regularly do. Regexes aren’t hard to write, their logic is quite simple. They’re hard to read, yes, but they are almost always one-offs (ex, substitutions in nvim).

            • vrighter@discuss.tchncs.de
              link
              fedilink
              arrow-up
              0
              ·
              3 months ago

              yes, “complex” regexes are quite simple too. Complex regexes are long, not difficult. They appear complex because you have to “inline” everything. They really are not that hard.

                • vrighter@discuss.tchncs.de
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  3 months ago

                  cryptic != complex. Are they cryptic? yes. Are they complex? not really, if you can understand “one or more” or “zero or more” and some other really simple concepts like “one of these” or “not one of these” or “this is optional”. You could explain these to a child. It’s only because they look cryptic that people think they are complex. Unless you start using backreferences and advanced concepts like those (which are not usually needed in most cases) they are very simple. long != complex

                  • FizzyOrange@programming.dev
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    3 months ago

                    Ok I can see you haven’t actually come across any complex regexes yet…

                    (Which is probably a good thing tbh - if you’re writing complex regexes you’re doing it wrong.)