Silver's Home
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Mac to Programming@programming.dev • 1 year ago

Strings do too many things

buttondown.email

external-link
message-square
79
fedilink
93
external-link

Strings do too many things

buttondown.email

Mac to Programming@programming.dev • 1 year ago
message-square
79
fedilink
The most powerful and terrible of all basis types
  • @derpgon@programming.dev
    link
    fedilink
    14•1 year ago

    The best validation for a valid email address is always sending a verification mail. I’ve rejected countless MRs that contained ad-hoc regex email validation copied from the internet. I’d allow a check for it to contain an @.

    • im sorry i broke the code
      link
      fedilink
      3•1 year ago

      What if it only contains @?

      • @SpacePirate@lemmy.ml
        link
        fedilink
        7•
        edit-2
        1 year ago

        If they are also sending a validation email, it would fail, so no issue.

Programming@programming.dev

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

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 240 users / day
  • 950 users / week
  • 3.36K users / month
  • 7.55K users / 6 months
  • 20.9K subscribers
  • 2.2K Posts
  • 33.6K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • @MaungaHikoi@lemmy.nz
  • @UlrikHD@programming.dev
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org