• conditional_soup@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    18 days ago

    Regex

    Edit: to everyone who responded, I use regex infrequently enough that the knowledge never really crystalizes. By the time I need it for this one thing again, I haven’t touched it in like a year.

    • Kissaki@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      18 days ago

      You always forget regex syntax?

      I’ve always found it simple to understand and remember. Even over many years and decades, I’ve never had issues reading or writing simple regex syntax (excluding the flags and shorthands) even after long regex breaks.

      • Akito@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        18 days ago

        It’s not about the syntax itself, it’s about which syntax to use. There are different ones and remembering which one is for which language is tough.

  • perishthethought@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    19 days ago

    I don’t normally say this, but the AI tools I’ve used to help me write bash were pretty much spot on.

    • marduk@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      19 days ago

      Yes, with respect to the grey bearded uncles and aunties; as someone who never “learned” bash, in 2025 I’m letting a LLM do the bashing for me.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        19 days ago

        Until the magic incantations you don’t bother to understand don’t actually do what you think they’re doing.

        • MBM@lemmings.world
          link
          fedilink
          arrow-up
          0
          ·
          18 days ago

          I wonder if there’s a chance of getting rm -rf /* or zip bombs. Those are definitely in the training data at least.

          • furikuri@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            18 days ago

            The classic rm -rf $ENV/home where $ENV can be empty or contain spaces is definitely going to hit someone one day