you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 3 weeks ago (11 children)

Couldn't you just make it so the text box doesn't accept spaces to prevent that? Why allow a character to be input that makes the field invalid?

  • source
  • parent
  • hideshow 11 child comments
  • [–] 27 points 3 weeks ago*

    Yeah, that's also a bad idea, there's plenty of (mostly none-western) forenames that contain spaces, and plenty of surnames that contain spaces all over the world (Charles de Gaul, Guy Manuel de Hommen-baron)

    All they really need to do is to onSubmit do a .trim() to the name

  • source
  • parent
  • [–] 16 points 3 weeks ago (2 children)

    Because even if a space at the end of the name should be considered invalid, people can have names with spaces inside.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 3 weeks ago (1 child)

    This is true. I know someone with a legal first name that's two words. He's a kid I work with. His parents made a point that his name isn't one or the other, it's both, and we are to address him as such.

    To my understanding (as a non-tech person who consumes tech-related media), name fields are commonly culturally biased. Usually it impacts last names, which can vary in size and layout across the world, sometimes including hyphens (which some systems don't like either.) Super short or long names also run into problems. Not everyone has one first name, one middle name, and one last name, but a lot of systems aren't designed to handle that kind of variation.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 3 weeks ago (2 children)

    Nah, backend is hard, and they only know JS.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 3 weeks ago (1 child)

    As a primarily backend engineer, I think the opposite here. The backend makes sense, JS is just a nightmare.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 3 weeks ago* (last edited 3 weeks ago)

    From the typical web developer' view of course. They don't even know the <form><input type="submit"> thing anymore nowadays, neither the people who developed their framework. Can't apply for a job, because the js-form has a bug!

  • source
  • parent
  • [–] 7 points 3 weeks ago* (3 children)

    Of course you can. But whoever developed the form didn't care about their craft.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 3 weeks ago*

    Japan has gotten a lot better but you still run into shit for this sometimes. First and middle names often have to be input without a space, so you end up with Johnwendell Anderson. And sometimes forms require names to be input with the Japanese phonetic alphabet (which lacks a lot of letters in English), and then if it doesn't match some document you need to verify an online input there can be trouble. So Jeeves would become Jiibuzu, and good luck matching that to your passport at the airport.

  • source
  • parent