• otacon239@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    5 days ago

    The day I started learning Regex was the day I felt like I was really learning computers. I went from 2 hour tasks to 15 minutes.

    I doubt you’d even be able to reasonably explain what they are let alone how they work to the average person outside the Millennial generation.

    I fear AI data processing will replace much of the Regex skill set. Why learn Regex when the computer just does it for you… 🙄

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      Silly millennial, even Boomers were using regexen in the 70s, and they were commonplace by the time GenX nerds started playing with them in the 80s and 90s. Your elders also know that regexen are fun but extremely dangerous, and should only be used in cases where they won’t make things much worse.

    • mearce@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      I agree that regex is an important thing to learn. Not sure any old LLM would do a very good job, and I hope that no tool replaces people actually learning how to write regex.

      I’m not sure what you mean about the average person outside the millennial generation not understanding them, though. Maybe I’m mistaken, but I don’t think the ‘average’ person in any generation knows what regex is. Unless there is some reason the average millennial was actually exposed to them and forced to understand them?

      As for being doubtful that anyone could understand them aside from a millennial, I assume you’re being hyperbolic? Sort of sounds like “Kids these days can never learn what I learned!” (I’m teasing).

      Anyway I’m in agreement with you. This thread did remind me of a pretty neat project that, while still requiring domain knowledge, could save some time and be a good learning tool without being as fallible of a crutch as an LLM.

      Have not tried it, and am not an experienced developer, so I am curious to your thoughts/criticisms: https://github.com/pemistahl/grex

      • PolarisFx@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        That’s a good idea actually. I hate writing regex, so I asked Gemini to do it just now. Once I explained it in the format it wanted: what the source would be, what I wanted filtered and the language I planned to use it with it spat out a perfect expression without me needing to even use my brain. Technology is wonderful.

        • mearce@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          5 days ago

          I’m sure LLMs can get it right, but if I was going to use a tool for something like that, I’d want one that was more deterministic like the linked tool claims to be.

      • otacon239@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        Yeah, I am exaggerating a bit, but I’ve not met anyone under the age of 25 that’s even remotely interested in putting in the effort to learn (anecdotal, I’m aware). Many have expressed wanting to learn, but then they never follow up when I try and pursue teaching anything.

        And I’m not necessarily saying that the average person already understands them, but someone from our generation will probably pick them up far more quickly then your average Gen Z/Gen A.

        • mearce@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          4 days ago

          Maybe what you’re claiming is true, I don’t know whether is ‘probable’.

          I poked fun at this before, but I don’t think it came across. If I’m not mistaken, millennials were the subject of a lot of boomer complaints about “kids these days”, being called lazy or entitled etc…

          Maybe zoomers are dumber, maybe they’re full of microplastics and entitlement. Or maybe this thread is an example of the “chastise the next generation” history repeating. One generation is lumped together and shat on by older generations, some of which then make similar claims about the next generation(s) all backed up with nothing but anecdotes and confirmation bias.

          I’m not trying to take dig at you, but I do want to highlight the similarities between claims like these and when a boomer might’ve said “I know a millennial who spends more on coffee than I would, so millennials are bad with their money. Millennials, who are bad with their money, cant afford houses. Yet they act entitled to homeownership, and so, they are lazy.” It’s a claim that assumes something about the integrity and intelligence of a swath of people and ignores the systemic issues that made homeownership hard for many millennials compared to past generations.

          Again, maybe you are right, I do not know. I don’t think, though, that boomer rhetoric that shat on millennials as a whole was particularly accurate or productive.

          • otacon239@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            4 days ago

            I certainly don’t blame them for these pitfalls I don’t think it’s laziness. It’s 100% a lack of education. Teachers have all but given up trying to get kids to pay attention in class. It’s become a snowball effect.

            When I was in school, most of my classmates took it seriously and took much of the education at face value. And almost all of my classmates are people that could handle the full Office suite.

            Now it seems every kid thinks they already know computers because they started with an iPad at the age of 4, but what they don’t realize is phones and tablets are the equivalent to toys.

            You don’t ever actually learn how to use a phone. Just individual apps. People don’t even really browse the internet blindly anymore.

            I think it’s probably the difference that a lot of boomers probably saw with cars in the 2000s-2010s. It used to be everyone had a rough idea of how a car worked and most people could learn in a year or two how to do basic stuff.

            Now it’s all a closed magic box requiring a full technical degree. Phones fell the same. Its a magic box that they never had the opportunity to wonder how it worked.