Upvote!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
TxTechnician@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago

Proof that Regex is Hate Speech!

message-square
message-square
54
fedilink
272
message-square

Proof that Regex is Hate Speech!

TxTechnician@lemmy.ml to Programmer Humor@lemmy.ml · 1 year ago
message-square
54
fedilink

  • tostiman@sh.itjust.works
    link
    fedilink
    arrow-up
    42
    arrow-down
    3
    ·
    1 year ago

    Regexes are write-only. No one can understand other peoples regexes

    • Bene7rddso@feddit.de
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      Not only other people’s regexes. Mine from last week and before too

      • tostiman@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Haha

    • Tathas@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      That’s also 'cause other people’s regex are garbage!

    • mayoi@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      arrow-down
      12
      ·
      1 year ago

      That’s why they don’t belong anywhere outside single line bash commands.

      • Aniki 🌱🌿@lemm.ee
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        2
        ·
        1 year ago

        deleted by creator

        • mayoi@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          arrow-down
          20
          ·
          1 year ago

          Use of regex in production code is a sign of incompetence.

          • Aniki 🌱🌿@lemm.ee
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            2
            ·
            1 year ago

            deleted by creator

            • Seasoned_Greetings@lemm.ee
              link
              fedilink
              arrow-up
              12
              ·
              1 year ago

              He’s a troll. He said earlier today that the holocaust wasn’t bad because “not all the jews died”

              He’s just trying to pick a fight

            • mayoi@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              arrow-down
              12
              ·
              1 year ago

              Removed by mod

              • rwhitisissle@lemmy.ml
                link
                fedilink
                arrow-up
                3
                ·
                1 year ago

                There’s a lot of use cases where regex makes a lot of sense: complex log parsing, determining if a value entered is a valid phone number or email, syntax highlighting, data validation in ML preprocessing, etc. A lot of languages also come with certain features that allow regex to be more efficient than dumb string matching, such as the ability to pre-compile patterns and the flexibility of being able to choose between deterministic and non-deterministic finite automata, should you need efficiency for one use case and flexibility for another. It really depends on what you’re designing and how it’s going to be used, of course.

              • Aniki 🌱🌿@lemm.ee
                link
                fedilink
                English
                arrow-up
                3
                arrow-down
                2
                ·
                1 year ago

                deleted by creator

                • mayoi@sh.itjust.works
                  link
                  fedilink
                  arrow-up
                  2
                  arrow-down
                  4
                  ·
                  1 year ago

                  Perfect pair of words for every solution that involves a regex.

                  • Aniki 🌱🌿@lemm.ee
                    link
                    fedilink
                    English
                    arrow-up
                    3
                    arrow-down
                    2
                    ·
                    1 year ago

                    deleted by creator

                  • Seasoned_Greetings@lemm.ee
                    link
                    fedilink
                    arrow-up
                    1
                    arrow-down
                    1
                    ·
                    1 year ago

                    deleted by creator

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 383 users / day
  • 663 users / week
  • 1.87K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.71K Posts
  • 37.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org