LQX Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
TheBigRoomXXL@leminal.space to Programmer Humor@programming.devEnglish · 16 hours ago

Everyone knows what an email address is, right? (Quiz)

e-mail.wtf

external-link
message-square
105
link
fedilink
645
external-link

Everyone knows what an email address is, right? (Quiz)

e-mail.wtf

TheBigRoomXXL@leminal.space to Programmer Humor@programming.devEnglish · 16 hours ago
message-square
105
link
fedilink
Email is Easy
e-mail.wtf
external-link
Everyone knows what an email address is, right?
  • TomasEkeli@programming.dev
    link
    fedilink
    arrow-up
    26
    ·
    7 hours ago

    I don’t validate emails, I test them.

    That’s your email? OK, what did we send it? if we couldn’t send to it or the user can’t read it there’s no reason to accept it.

    OK, maybe I do some light validation first, but I don’t trust the email address just because it’s email-address-shaped.

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 hours ago

      What kind of “light validation”? I’m guessing a .*@.* regex match.

      • TomasEkeli@programming.dev
        link
        fedilink
        arrow-up
        9
        ·
        edit-2
        6 hours ago

        Almost correct. ^.+@.+$

        Too hard to validate properly to be worth it. Even if it is technically valid that’s insufficient. It must also work, and the easiest way to test that is to use it and verify that the user got what we sent.

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 hour ago

          @@@

        • GreenKnight23@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          5 hours ago

          I see you accept lemmy handles.

          • TomasEkeli@programming.dev
            link
            fedilink
            arrow-up
            6
            ·
            5 hours ago

            if i can email them and the user gets it - fine by me

      • qqq@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        7 hours ago

        @ matches

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.35K users / day
  • 5.69K users / week
  • 9.14K users / month
  • 20.3K users / 6 months
  • 1 local subscriber
  • 25.8K subscribers
  • 1.06K Posts
  • 23.9K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org