• gwilikers@lemmy.ml
            link
            fedilink
            arrow-up
            6
            ·
            2 months ago

            Yeah, I’ve found myself wasting quite a lot of time thinking of the ‘perfect regex’ for task X only to realise that I could have avoided doing so by simply taking a different approach.

    • Speiser0@feddit.org
      link
      fedilink
      arrow-up
      11
      ·
      2 months ago

      Regular expressions in general, and automata theory, sure you should know about that. But a specific extended regex language like here? That’s like saying you’re shit at coding if you can’t do <insert arbitrary programming language here>.

        • ddplf@szmer.info
          link
          fedilink
          arrow-up
          7
          arrow-down
          4
          ·
          2 months ago

          And then a few more any time you actually want to use it.

          And then double it each time you have to decipher the existing one

          Just don’t use regex unless there is really no other way, and when you absolutely have to - frankly, that’s one of the ultra rare occasions I recommend using the AI.

            • ddplf@szmer.info
              link
              fedilink
              arrow-up
              3
              arrow-down
              4
              ·
              edit-2
              2 months ago

              That I do, yes, because that’s a small chunk of code that - when necessary - would have to be completely remade anyways, not just modified.

                • ddplf@szmer.info
                  link
                  fedilink
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  2 months ago

                  That’s your opinion my man

                  I’m not gonna continue using arguments if all you can respond with is cynicism, apparently I wasn’t wrong about the elitism part

                  • MummifiedClient5000@feddit.dk
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    2 months ago

                    Getting butthurt and personal over an offhand remark in a humour community is really toxic and you should probably work on that.

                    I trust that you can be better, my good buddy ❤