top | item 42228181

(no title)

arsome | 1 year ago

name.Length > 0

is probably pretty safe.

discuss

order

pridkett|1 year ago

That only works if you’re concatenating the first and last name fields. Some people have no last name and thus would fail this validation if the system had fields for first and last name.

Macha|1 year ago

Honestly I wish we could just abolish first and last name fields and replace them with a single free text name field since there's so many edge cases where first and last is an oversimplification that leads to errors. Unfortunately we have to interact with external systems that themselves insist on first and last name fields, and pushing it to the user to decide which is part of what name is wrong less often than string.split, so we're forced to become part of the problem.

cluckindan|1 year ago

some people have no name at all