Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Everyone knows what an email address is, right? (Quiz)

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

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
140 Posts 105 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P [email protected]

    I didn't understand this one. How do you have a no dot domain? Like you need to distinguish from example.com or example.wtf

    Edit: do you mean if you own .google you can have your email@google address?

    A This user is from outside of this forum
    A This user is from outside of this forum
    [email protected]
    wrote last edited by
    #120

    you could also send mails within your local network, the hostname just has to resolve and have a mail service running

    1 Reply Last reply
    0
    • L [email protected]

      Yeah I have a .engineering for my biz. I also registered mycompanyengineering.com to get through places that won’t take the new TLDs.

      Usually banks.

      appoxo@lemmy.dbzer0.comA This user is from outside of this forum
      appoxo@lemmy.dbzer0.comA This user is from outside of this forum
      [email protected]
      wrote last edited by
      #121

      Seems like a weird choice as the primary TLD.
      I'd switch it just to reduce the annoying typing hassle and to avoid misspelling.

      It's already unusual if I say "My email is [email protected]"
      And that trips so many persons.
      First: I have my own domain
      Second: It's not gmail, apple or a local provider
      Third: The TLD isnt .de or .com but .eu

      1 Reply Last reply
      0
      • T [email protected]
        This post did not contain any content.
        iavicenna@lemmy.worldI This user is from outside of this forum
        iavicenna@lemmy.worldI This user is from outside of this forum
        [email protected]
        wrote last edited by
        #122

        13/21, seems like I am not significantly different from random guessing

        G U 2 Replies Last reply
        16
        • iavicenna@lemmy.worldI [email protected]

          13/21, seems like I am not significantly different from random guessing

          G This user is from outside of this forum
          G This user is from outside of this forum
          [email protected]
          wrote last edited by
          #123

          Got the same, I can't believe how many weird comments and extra random things can get added into an email address.

          1 Reply Last reply
          6
          • P [email protected]

            nice. though valid but obsolete is not a thing... if it's obsolete it's invalid.

            G This user is from outside of this forum
            G This user is from outside of this forum
            [email protected]
            wrote last edited by
            #124

            Agreed! (because then I would get 3 more points on the test)

            1 Reply Last reply
            3
            • T [email protected]

              Fails for when there is no TLD. Just send an email and validate a response eg from a link.

              I This user is from outside of this forum
              I This user is from outside of this forum
              [email protected]
              wrote last edited by
              #125

              No. The number of users who have a real email with no TLD is far less than the number of users who will accidentally type an email with no TLD if you don’t validate on the front end.

              I’m here to help 99.9% of users sign up correctly, not to be completely spec-compliant for the 0.1% who think they’re special.

              U 1 Reply Last reply
              2
              • tomasekeli@programming.devT [email protected]

                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.

                G This user is from outside of this forum
                G This user is from outside of this forum
                [email protected]
                wrote last edited by
                #126

                Hooray, you have better security than Apple, who won't let me use my own email because some idiot in Australia used it first.

                1 Reply Last reply
                1
                • C [email protected]

                  Also as the registrant of one of those new fancy TLDs, much like the owner of this website (email.wtf), their own email addresses will fail those stupid email validation checks that only believe in example@example.[com|net|org]

                  Shitty websites will fail "[email protected]", guaranteed - despite it being 100% valid AND potentially live.

                  Source - I have a ".family" domain for my email server. Totally functional, but some shitty websites refuse to believe it.

                  N This user is from outside of this forum
                  N This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #127

                  I'm not sure I blame the sites. The spec is so complex that it's not even possible to know which regex to use

                  A B U 3 Replies Last reply
                  0
                  • N [email protected]

                    I'm not sure I blame the sites. The spec is so complex that it's not even possible to know which regex to use

                    A This user is from outside of this forum
                    A This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #128
                    const emailRegExp = /^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z\d-]+(?:\.[a-z\d-]+)*$/i;
                    

                    per the HTML specification. From https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation#validating_forms_without_a_built-in_api

                    N 1 Reply Last reply
                    2
                    • A [email protected]
                      const emailRegExp = /^[\w.!#$%&'*+/=?^`{|}~-]+@[a-z\d-]+(?:\.[a-z\d-]+)*$/i;
                      

                      per the HTML specification. From https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation#validating_forms_without_a_built-in_api

                      N This user is from outside of this forum
                      N This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #129

                      That's one very random place to find that. There are a lot of different one and there is no way we all just agree to use that one.

                      Look art his site that shows a more complete and (in theory) official website. While also explaining that there is no regex that is perfect

                      https://emailregex.com/

                      (Compete regex for the lazy)

                      (?:\[a-z0-9!#$%&'\*+/=?^\_\`{|}\~-]+(?:\\.\[a-z0-9!#$%&'\*+/=?^\_\`{|}\~-]+)\*|"(?:\[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\\\\[\x01-\x09\x0b\x0c\x0e-\x7f])\*")@(?:(?:\[a-z0-9]\(?:\[a-z0-9-]\*\[a-z0-9])?\\.)+\[a-z0-9]\(?:\[a-z0-9-]\*\[a-z0-9])?|\\\[(?:(?:25\[0-5]|2\[0-4]\[0-9]|\[01]?\[0-9]\[0-9]?)\\.){3}(?:25\[0-5]|2\[0-4]\[0-9]|\[01]?\[0-9]\[0-9]?|\[a-z0-9-]\*\[a-z0-9]:(?:\[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\\\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\\])
                      
                      A 1 Reply Last reply
                      0
                      • T [email protected]
                        This post did not contain any content.
                        S This user is from outside of this forum
                        S This user is from outside of this forum
                        [email protected]
                        wrote last edited by [email protected]
                        #130

                        I rage quit gave up at 12.

                        A fork bomb is apparently a valid email address.

                        I quit, this is stupid.

                        1 Reply Last reply
                        5
                        • T [email protected]
                          This post did not contain any content.
                          G This user is from outside of this forum
                          G This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #131

                          I kind of expected a lot of this; I remember the sendmail 4 book from back in the day when O'Reilly had that, DNS and BIND, and Perl as the entirety of its corpus.

                          1 Reply Last reply
                          0
                          • mobotsar@sh.itjust.worksM [email protected]

                            In response to your edit.

                            Yes, or countries could use their cctld, e.g. email@us or noreply@uk.

                            Or any tld owner could do the same with theirs, of course.

                            P This user is from outside of this forum
                            P This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #132

                            Pretty cool

                            1 Reply Last reply
                            0
                            • N [email protected]

                              That's one very random place to find that. There are a lot of different one and there is no way we all just agree to use that one.

                              Look art his site that shows a more complete and (in theory) official website. While also explaining that there is no regex that is perfect

                              https://emailregex.com/

                              (Compete regex for the lazy)

                              (?:\[a-z0-9!#$%&'\*+/=?^\_\`{|}\~-]+(?:\\.\[a-z0-9!#$%&'\*+/=?^\_\`{|}\~-]+)\*|"(?:\[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\\\\[\x01-\x09\x0b\x0c\x0e-\x7f])\*")@(?:(?:\[a-z0-9]\(?:\[a-z0-9-]\*\[a-z0-9])?\\.)+\[a-z0-9]\(?:\[a-z0-9-]\*\[a-z0-9])?|\\\[(?:(?:25\[0-5]|2\[0-4]\[0-9]|\[01]?\[0-9]\[0-9]?)\\.){3}(?:25\[0-5]|2\[0-4]\[0-9]|\[01]?\[0-9]\[0-9]?|\[a-z0-9-]\*\[a-z0-9]:(?:\[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\\\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\\])
                              
                              A This user is from outside of this forum
                              A This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #133

                              MDN isn't a very random place?

                              N 1 Reply Last reply
                              1
                              • A [email protected]

                                MDN isn't a very random place?

                                N This user is from outside of this forum
                                N This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #134

                                No. But it's on the form validation topic.

                                1 Reply Last reply
                                0
                                • T [email protected]
                                  This post did not contain any content.
                                  L This user is from outside of this forum
                                  L This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #135

                                  So much better than I thought it would be! Thank you for making the world a better & more informed place

                                  1 Reply Last reply
                                  1
                                  • N [email protected]

                                    I'm not sure I blame the sites. The spec is so complex that it's not even possible to know which regex to use

                                    B This user is from outside of this forum
                                    B This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by [email protected]
                                    #136

                                    The spec is so complex that it’s not even possible to know which regex to use

                                    Yes. Almost like a regex is not the correct tool to use, and instead they should use a well-tested library function to validate email addresses.

                                    N 1 Reply Last reply
                                    1
                                    • iavicenna@lemmy.worldI [email protected]

                                      13/21, seems like I am not significantly different from random guessing

                                      U This user is from outside of this forum
                                      U This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #137

                                      I got 11.
                                      The spaces and quotes caught me.

                                      1 Reply Last reply
                                      0
                                      • N [email protected]

                                        I'm not sure I blame the sites. The spec is so complex that it's not even possible to know which regex to use

                                        U This user is from outside of this forum
                                        U This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #138

                                        I have a feeling, the ones codapine is stating, didn't even care to half-read the spec and just went with what they knew from experience.
                                        Maybe they didn't even know there was a spec.
                                        Maybe they asked ChatGPT for the regex.

                                        1 Reply Last reply
                                        0
                                        • I [email protected]

                                          No. The number of users who have a real email with no TLD is far less than the number of users who will accidentally type an email with no TLD if you don’t validate on the front end.

                                          I’m here to help 99.9% of users sign up correctly, not to be completely spec-compliant for the 0.1% who think they’re special.

                                          U This user is from outside of this forum
                                          U This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #139

                                          Guess my mail@IPv6 won't be accepted because I was too poor to pay for a domain name after having paid for a static IPv6.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups