• @froztbyte
    link
    English
    1119 days ago

    (I don’t mean to take aim at you with this despite how irked it’ll sound)

    I really fucking hate how many computer types go “ugh I can’t” at regex. the full spectrum of it, sure, gets hairy. but so many people could be well served by decently learning grouping/backrefs/greedy match/char-classes (which is a lot of what most people seem to reach for[0])

    that said, pomsky is an interesting thing that might in fact help a lot of people go from “I want $x” as a human expression of intent, to “I have $y” as a regex expression

    [0] - yeah okay sometimes you also actually need a parser. that’s a whole other conversation. I’m talking about “quickly hacking shit up in a text editor buffer in 30s” type cases here

    • @swlabr
      link
      English
      8
      edit-2
      19 days ago

      Hey. I can do regex. It’s specifically grep I have beef with. I never know off the top of my head how to invoke it. Is it -e? -r? -i? man grep? More like, man, get grep the hell outta here!

      • @froztbyte
        link
        English
        1219 days ago

        now listen, you might think gnu tools are offensively inconsistent, and to that I can only say

        find(1)

        • @swlabr
          link
          English
          1219 days ago

          find(1)? You better find(1) some other place to be, buster. In this house, we use the file explorer search bar

        • @swlabr
          link
          English
          419 days ago

          If I start using this and add grep functionality to my day-to-day life, I can’t complain about not knowing how to invoke grep in good conscience, dawg. I can’t hold my shitposting back like that, dawg!

          jk that looks useful. Thanks!

          • @lagoon8622@sh.itjust.works
            link
            fedilink
            English
            419 days ago

            The cheatsheet and tealdeer projects are awesome. It’s one of my (many) favorite things about the user experience honestly. Really grateful for those projects

      • @froztbyte
        link
        English
        419 days ago

        woo! but still also check out pomsky, it’s legit handy!

        • @froztbyte
          link
          English
          319 days ago

          (also I did my disclaimer at the start there, so, y’know (but also igwym))