[โ€“] 3 points 1 year ago (3 children)

Why even use HTTP, when you can just send bytes directly over the physical network card, right?

Because standards make it better for everyone. You've no idea when, who or in what context the error will happen or be received by.

It takes so little to return ProblemDetails, and improves the experience of devs using your API so much. Just do it. Stop thinking up edge cases and faffing about with excuses. Do it.

  • source
  • parent
  • context
  • [โ€“] 32 points 1 year ago (1 child)

    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.

  • source
  • view more: โ€น prev next โ€บ