Live data from Hacker News

Charset="WTF-8"

wtf-8.xn--stpie-k0a81a.com

1–10 of 463 posts

Re: Charset="WTF-8"

#2
A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Re: Charset="WTF-8"

#3
post #2

A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Is name validation even possible?

Re: Charset="WTF-8"

#4
post #3
post #2

A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Is name validation even possible?

Yes, it is essential when you want to avoid doing business with customers who have invalid names.

Re: Charset="WTF-8"

#5
post #3
post #2

A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Is name validation even possible?

Sure it is. Context matters. For example, in clone wars.

Re: Charset="WTF-8"

#6
post #3
post #2

A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Is name validation even possible?

Yes, it's easy

    bool ValidateName(string name) => true;
(With the caveat that a name might not be representable in Unicode, in which case I dunno. Use an image format?)

Re: Charset="WTF-8"

#7
post #3
post #2

A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Is name validation even possible?

No, but it doesn’t stop people trying.

Re: Charset="WTF-8"

#8
post #3
post #2

A coworker once implemented a name validation regex that would reject his own name. It still mystifies me how much convincing it took to get him to make it less strict.

Is name validation even possible?

You may not want Bobby Tables in your system.

Re: Charset="WTF-8"

#9
post #3

Earlier quoted context omitted.

Is name validation even possible?

Yes, it is essential when you want to avoid doing business with customers who have invalid names.

What are “invalid names” in this context? Because, depending on the country the person was born in, a name can be literally anything, so I’m not sure what an invalid name looks like (unless you allow an `eval` of sorts).

Re: Charset="WTF-8"

#10
I have an 'æ' in my middle name (formally secondary first name because history reasons). Usually I just don't use it, but it's always funny when a payment form instructs me to write my full name exactly as written on my credit card, and then goes on to tell me my name is invalid.
Post reply on HN