Email or username:

Password:

Forgot your password?
ajft

#programming #names Aargh

Throw the programmers in the sea

Data entry field for an app, a box labelled "First Name" in which a person named "Jo" has entered "Jo".  In red error text below has appeared "The field First Name must be a string or array type with a minimum length of '3'."
67 comments
MyView

@ajft

Ahhh ...ya gotta larf :)

Unless your name is Jo ...

MyView

@ajft

Has she been able to do whatever it was ...

I would have been making a few phone calls ...

My offspring have had a few problems with certain documents by not having middle names ... even been told that "everybody has a middle name" ...

My offspring haven't been christened/baptised either ... Shock! Horror!

ajft

@MyView yes, she used a longer form of that name. I've run into the middle name thing before, I've got two of them, much US-based software used to insist on mandatory one middle initial - VISA cards still do. Friend at uni (jane smith) had no middle name so had a student ID card that was name based as "jxsNNN" where x stood for bad software

MyView

@ajft

Funny things about names ... I've been doing a lot of historical research and found it difficult to trace some people because they either didn't like their first name so used the middle one, or to differentiate from their father with the same name ...

And really confusing when families traditionally called their first born son after the father ... for generations ...

Even harder when a name can be shortened and no idea if Great Uncle Bert was Herbert, Albert, Bertram, Hubert, Gilbert, Robert ...

@ajft

Funny things about names ... I've been doing a lot of historical research and found it difficult to trace some people because they either didn't like their first name so used the middle one, or to differentiate from their father with the same name ...

And really confusing when families traditionally called their first born son after the father ... for generations ...

Daniel Carosone

@ajft I need to show this to my friends ["Mary", "Anne"] and ["John", "Paul"]

sortius

@ajft change your name to Joyouneedtolearnhowlongnamefieldsshouldbe

Just to break it the other way😆

Moz

@ajft next problem: names may not contain spaces, underscores or non-visible unicode characters

mikeTesteLinux

@ajft Always a classical that minimum number of characters 😆

PHolder :clubtwit:

@ajft Time to adopt an Emoji as part of your name 🙃

Samhain Night 4 Harris

@ajft It's me but having more than one middle name and a two word last name.

ajft

@samhainnight i had a colleague at uni of sri lankan extraction who had 8 names (I think, maybe it was 10), his nominal "last name" was up around 20 characters long. he always had fun with official forms when they asked "please enter your full name"

Samhain Night 4 Harris

@ajft I had to squish my middle names into one to get it to fit on my driver's license. To this day, I cannot fill out any government form on line because my name doesn't fit the standard format.

ajft

@samhainnight I have two middle names, once long ago a friend was working at the admin section of the uni I studied at, she found two files of my records, "Lastname, Firstname, middle1" and "Lastname, Firstname, middle2". One of these folders had one piece of paper, the other one had everything else. I believe she quietly merged the two and threw out one (allegedly, unofficially, etc)

Moz

@ajft @samhainnight when I asked for my police records using FOI I eventually got three back because apparently the cops couldn't spell my last name. The first one I got back had it misspelled (but the record was me) so I asked again using common misspellings and got more matches :)

jack

@moz @ajft @samhainnight having worked in system administration in vaguely similar spaces it feels very bad to prematurely merge potential duplicate records because they usually cannot be gracefully unmerged if you've made a mistake

I've had fantasies of making a CRM where, instead of a person's record being this monolith and everyone/everything's updates being mixed in irretrievably, all the updates are marked with how the user identifies the subject:

"Joe Bloggs, owner of joebloggs@gmail.example"

"Joe Bloggs, subject of record ID 24601 in the old system"

"Joe Bloggs, resident at 22 West Wallaby Street"

"Joseph Bloggs, resident at 22 West Wallaby Street"

and if it transpires some of these identifiers are for the same person, you can link them and the users see a combined record with all the updates made against all the linked identifiers. but if it turns out you made a mistake you can unlink the identifiers and separate the Joseph Wallaby casenotes from the Joe Wallaby casenotes

@moz @ajft @samhainnight having worked in system administration in vaguely similar spaces it feels very bad to prematurely merge potential duplicate records because they usually cannot be gracefully unmerged if you've made a mistake

I've had fantasies of making a CRM where, instead of a person's record being this monolith and everyone/everything's updates being mixed in irretrievably, all the updates are marked with how the user identifies the subject:

Júbilo MX

@ajft @JustTooOdd
Because we are all named the same...
In Latin America (and the Iberic Penninsula) we have two last names... it would be common for a Spanish/Portuguese-speaking developer to expect two last names... and the opposite..
if you are Alex Benitez Carranza, first name Alex, last names Benitez Carranza.. a north American system will assume Benitez is your middle name Alex B. Carranza..

ajft

@Bodling I think she settlied on "Jo';Window.Alert("Jo!")

(only kidding, she used a longer form name and grumbled a lot)

Brad

@ajft It’s the most reasonable thing to do (hurling programmers into the sea, that is). I feel shame being associated with this sort of thing, and have absolutely been in meetings/code reviews where validation was approached from the perspective of what’s possible rather than what’s useful. Anyway, obligatory: xkcd.com/2030/

markc568

@ajft @Gustodon I’d find the max with something like ‘Jooooooooooooooooooooooooooo’

Toby Wintermute

@ajft ignoring the terrible choice of requiring a minimum of three characters... What's with the "or an array type"? I wonder what happens if you try sending back a form response with multiple first names? (which site is this anyway?)

Medium Endian

@ajft

I'm so freaking tired of lazy development.

Other engineering fields have actual discipline.

Whatever happened to the concept of craftsmanship, of creating things worth taking pride in?

Matt Palmer

@grendel84 it was acquired by Google in a hostile takeover, then killed off when the PM needed a new project to get their next promotion.

@ajft

Stefan Scholl

@ajft Names, addresses, dates & time, passwords. So many people don’t have a clue about them.

And occasionally a programmer can try to explain it to a manager and designer, but gets overruled anyway. Until a few years later some customer complaints and then it’s the programmer’s fault.

Beko Pharm

@Stefan_S_from_H @ajft this is the reality. Programmer is usually the tiniest gear in this process. Heck I got into arguments about missing ids in an API for proper _required_ cross reference of some datasets and had to argue my case in front of management - an uphill battle because changes to the API are "so expensive".

They added the missing ID after I left and someone else had to pick up the pieces.

Julien Goodwin

@ajft yep, have implemented this exact bug

Robert Kist 🇦🇹 🇸🇬

@ajft I got this with my e-mail. Apparently having 2 letters before the @ also sometimes causes trouble

Null

@ajft why does it accept an array 😭

rini ☁️

@ajft write [object Object] instead to cause pointless debugging to whoever did that

Helle (@ CCC Camp 📞 4355)

@ajft introducing them to my friends Q (first name only) and R (last name only) oh and M (her middle name)

Phil Picton 💀

@ajft @foone OMG that is terrible! I wonder if [“Jo”,,,] would pass validation

idle
And no special characters allowed, the good old 26 letters of the English alphabet should be fine for everyone.
noah !! :blobcat:

@ajft "Weird" Al Yankovic trying to sign up:

Albert Cardona

@ajft Reminded of someone whose surname is "Null" ... and how to properly validate text entry:

"Jennifer Null’s husband had warned her before they got married that taking his name could lead to occasional frustrations in everyday life. ... When Jennifer Null tries to buy a plane ticket, she gets an error message on most websites. The site will say she has left the surname field blank and ask her to try again."

bbc.com/future/article/2016032

Cybarbie

@ajft No surname is a thing in Afghanistan or so I was lead to believe.

maryjane :fediverso:

@ajft Also "loved" once that a website told me my name was not real because it had a tilde: ~

💢

Ri

@ajft I call myself QueerRi when this happens.

Arcadiagt5

@ajft @luciedigitalni You know that might even be a new falsehood programmers believe about names…

ajf

@ajft I have simply stopped writing my last name correctly since living in the UK. About 50% chance they accept a "ü" in the name.

Григорий Клюшников

It also sometimes sucks to be a Ян (Yan). I know one who adds a ъ to his name in this case, pre-revolution-spelling style.

Go Up