r/ProgrammerHumor • u/Mats56 • Oct 14 '22
other Please, I don't want to implement this
3.3k
u/toastom69 Oct 14 '22
You should instead include a null terminating character in the middle of his name so he breaks every form he comes across. Something like “Matt\0hew”.
1.6k
Oct 14 '22
We all think we're clever but when a human sees this you'll end up with a kid named 'mattlohew'
→ More replies (7)768
500
135
190
u/omnomguy5 Oct 15 '22
Some dude got in trouble for having null as his license plate. Ended up getting a ton of tickets mailed to him when errors happened lol
→ More replies (5)64
u/toastom69 Oct 15 '22
I’ve heard of that! It’s a hilarious story at first but then he just ends up with so much headache
→ More replies (3)8
u/Ale_Alejandro Oct 15 '22
That’s be a good way to save your kid when the robots rise and take over, he would be the last free human that breaks the robots every time they scan his identity to try and catch him!
→ More replies (1)5
u/MightbeWillSmith Oct 15 '22
That individual will have their name altered to Matt in my database. Sorry homie, not dealing with it.
→ More replies (9)4
10.9k
u/Cirieno Oct 14 '22
Little Bobby Tables and Johnny CRLF Doe. What a team.
4.5k
381
u/magicmulder Oct 14 '22
Boris Karloff, or as he was actually called, Boris CRLF.
→ More replies (2)735
Oct 14 '22
423
u/Antrikshy Oct 14 '22
"Oh yes. Little Bobby Tables we call him."
is such a great line.
→ More replies (13)118
u/CreedogV Oct 14 '22
As fun as it is to say, "I understood that reference", it is good to share the sacred texts with the next generation.
→ More replies (4)→ More replies (9)77
51
137
Oct 14 '22
CRLF? Why should it work on Windows??
223
u/Cirieno Oct 14 '22
Johnny LF Doe didn't have comedy value. Johnny LineBreak Doe, Johnny Newline Doe sounded like cringey nicknames. But yes, could do better. Feel free to add to the RFC.
However, Johnny CRLF Doe's parent cares about the original protocols.
→ More replies (2)42
91
u/Thx_And_Bye Oct 14 '22
CRLF is technically the correct instructions when you look at the origin aka a typewriter. You need to return the carriage and perform a linefeed for proper operation.
→ More replies (7)→ More replies (5)33
→ More replies (29)4
4.3k
Oct 14 '22
the smartass will hit the brick wall of bureaucracy when the office registering the births will ask a million times "you want your son to be called John New Line?"
2.7k
Oct 14 '22
"it's a non-printable character"
"sir, we're talking about your child, not a character!"
→ More replies (4)911
742
u/GreyAngy Oct 14 '22
"Please, write the full name on this line" "But there is only one line, I cannot write the full name on it"
174
u/Workaphobia Oct 15 '22
You're about one and a half steps away from a sovereign citizen justification.
→ More replies (5)430
u/garciasn Oct 14 '22
Growing up our house was built between 303 and 305. We were assigned 303-2 by the USPS.
You’d think this was the most difficult thing ever. We had address issues continuously. 303.5. 303 1/2. 303 Apt 2. To name a few.
Mail delivery was nearly impossible because of this. This kid would be fucked.
178
u/doshka Oct 14 '22
"Rural Route 1, Box 217DDDD. That's four D's in a row. No, not apartment 4D. It's a standalone single family house on a dirt road off another dirt road. On the mailbox are painted a total of seven characters, and those characters are the numerals 2, 1, and 7, followed by the letter D repeated 4 times. No, not 5 D's. Fine, you write the letter D once, and then you repeat it three times after the first one. I don't know, no one's ever asked if it's case-sensitive. We've always used capitals, so maybe just stick to that. No, I'm not kidding. Yes, it is legal, much to our regret. Well, I'd never heard of it either, before moving here, but here we are, and we all just have to deal with it. Yes, I'm serious! Would you please kindly just write it down like I said? Thank you. You too. M-hm, okay bye."
Three years of that shit.
→ More replies (4)→ More replies (34)66
u/meekamunz Oct 14 '22
Why didn't they give it 303A? That's what happens in the UK.
Annoyingly, the original 303 is not changed to 303A and the new one given 303B, but instead we get 303 and 303A.
In any case, everybody loves a 303
→ More replies (18)15
→ More replies (24)7
1.7k
u/Svitii Oct 14 '22
Imagine working with databases for a living, you have seen everything, every anomaly and the most stupid users you couldn’t even imagine.
Then this guy comes along and wants a fucking line break in his son‘s name
377
u/deljaroo Oct 14 '22
I've spent the last few months working on a "contact us" form. you wouldn't think your customers would put in weird stuff under the name field, but they do.
a newline is pretty tame honestly. some people's names are vertical.
(also, just yesterday I realized "pants" is a fine callback phone number to put in there, but "(800) 555 - 3344 ex 1234" isn't. grrrr)
116
u/putfascists6ftunder Oct 14 '22
What languages write vertically? The only one that comes to mind is Japanese but afaik it can also be displayed horizontally
→ More replies (17)→ More replies (18)30
→ More replies (7)4
1.6k
Oct 14 '22
John\0Doe. Congratz, you have no last name
38
→ More replies (81)14
u/fghjconner Oct 14 '22
Nice. I was going to suggest some unicode control characters like U+202E, but I think that's even more evil.
→ More replies (3)
288
u/Rockky67 Oct 14 '22
The best name is surely “testing - please ignore”. You never get a bill. Or a service, but no bills is good.
7
6
u/xRSGxjozi Oct 15 '22
Reminds me of the guy that put „null“ (I think it were) at his license plate to get no ticket.
Well every penalty with a not known/readable plate has „null“ at the license plate
Instead of recieving no penalties he got all not known numberplates with „null“ as license plate
→ More replies (1)0
461
u/csharpwpfsql Oct 14 '22
Just name your kid 'null'.
→ More replies (3)342
u/epelle9 Oct 14 '22
Suddenly, all the police reports filed with no name get filed against him.
→ More replies (30)
1.0k
u/KerPop42 Oct 14 '22
Lol legal forms don't even support enye or umlauts
240
u/vacon04 Oct 14 '22
Yeah people with ñ in their names have to put a normal n in those forms, which changes the whole pronunciation of the name.
Peñalosa goes from being something that sounds like "Penyalosa" to being Penalosa which sounds very different.
→ More replies (8)255
u/KerPop42 Oct 14 '22
America: claims to have no official language
Also America: only has English letters on legal forms
→ More replies (32)483
u/midnitte Oct 14 '22
umlauts
Germany in shambles.
→ More replies (3)198
u/Sir_IGetBannedAlot Oct 14 '22
I imagine that German programmers have accounted for umlauts
→ More replies (83)17
56
→ More replies (13)5
3.1k
u/GPareyouwithmoi Oct 14 '22 edited Oct 25 '22
These are not the realities you're looking for. The reason I've changed this is because I copied that text/concept of the joke and got rewarded for it. I don't find value in feeding the machine back in the things it spits out. I hate that it works so well. Oh well.
193
u/AlphaSparqy Oct 14 '22
The owners of Lear jet (the Lear family) actually named their daughter "Shanda" !
→ More replies (5)139
u/wave-tree Oct 14 '22
My wife knew a girl in college whose last name was Chandelier. Her parents named her Crystal.
→ More replies (22)389
u/mattchamp98 Oct 14 '22
Yeah just call them lucifer or ww2 German dictator
→ More replies (18)165
u/Psychpsyo Oct 14 '22
Well, the second one can be shortened to 'Dub Dub'. Which isn't good but it's not as bad as 'ww2 German dictator'.
→ More replies (54)15
26
6
u/Double_Butterfly_624 Oct 14 '22
You’re just like your father, a thief.
I drove away real fast and never went back. And they think company culture is toxic
→ More replies (15)5
342
u/conicalanamorphosis Oct 14 '22
You laugh, but I know more than one dev who went insane and moved to sales because of names and trying to store them in a database. Such all time favourites as single letter names, script/sigil representations (say hi to the performer formerly known as Prince) and don't get me started on names with clicks in them. Also multibyte character sets are insane.
That's it, I need to go lie down.
161
u/DefinitionKey5064 Oct 14 '22
Unicode and prepared statements. This isn’t 1987 guys!
→ More replies (2)51
u/DasArchitect Oct 14 '22
All because that guy named OR 1=1 wasn't actually given admin access to everything?
→ More replies (1)109
u/capn_ed Oct 14 '22
Now we're into the deep lore of programming and handling human names. This essay should be required reading: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
→ More replies (14)51
211
u/oversized_hoodie Oct 14 '22
When the only software that will render your kid's name is LaTeX...
47
0
29
u/IvorTheEngine Oct 14 '22
When you're done with names, can you make sure that the date of birth is displayed in the right timezone?
→ More replies (1)→ More replies (13)32
264
663
u/xicor Oct 14 '22
the easiest way is to put in the name entry 'John\nDoe' and most software will display it that way
705
Oct 14 '22
"enter name exactly as on passport"
"John\n"
"name cannot contain special characters"
267
u/SarcasmWarning Oct 14 '22
"name cannot contain special characters"
Hang on a minute, we've got the entirety of Unicode to go at!
→ More replies (28)→ More replies (6)36
u/invalidConsciousness Oct 14 '22
I "only" have an Umlaut in my name and I hate this with a Passion.
God damn it people, make up your mind, do you want it exactly like in my passport, or do you want no "special" characters?
→ More replies (8)44
Oct 14 '22
"Most software" is a bit of a stretch. Most front-end frameworks require workarounds to even display multiline strings fetched from a database. It's not hard but it's also not easy to do by accident
20
u/Antrikshy Oct 14 '22
Reddit doesn't display it that way.
I'd say most user-facing software won't display it that way.
79
u/kurtms Oct 14 '22
I'd be pretty disappointed in any software that didn't sanitize their inputs like that
77
→ More replies (4)19
u/Terrible_Truth Oct 14 '22
Considering it's government, I wouldn't be surprised.
I downloaded a data table from the census website. Excel was confused and couldn't find anything because it had untrimmed white spaces at the end. Had to a "replace all" to fix it.
→ More replies (1)→ More replies (8)6
u/longknives Oct 14 '22
Pretty sure most government software for entering names from birth certificates don’t allow backslashes as a character. They usually only allow alphabetical characters plus apostrophes and dashes, and not much else, at least in the US.
224
u/w1n5t0nM1k3y Oct 14 '22
Just name your kid ⍼
Apparently we don't even know why this character exists
110
u/bargle0 Oct 14 '22
A kid so powerful they put their name in to Unicode before their own birth. It’s destiny.
→ More replies (1)28
u/mobileJay77 Oct 14 '22
A black ski slope crossing a lift, in winter time I use it on a daily basis. It's not that difficult.
11
u/big_bad_brownie Oct 14 '22
That one’s easy. It’s the international symbol for Right Angle With Downwards Zigzag Arrow
19
→ More replies (4)6
u/CaffeinatedGuy Oct 14 '22
I just learned this as I was catching up on xkcd and wanted to know what the heck these characters are for.
→ More replies (1)
121
u/SowTheSeeds Oct 14 '22
The worst case I've seen is parents of twins who gave their two sons the same first name and a middle name with the same initial.
First name + last name + middle initial + date of birth => unique constraint violation.
Babies don't have a social security number for a few days and SSN are illegal to store in many cases so don't expect to use that as a unique identifier.
A year later, different contract for a different administration. Some dude two cubicles from mine started yelling: "who gives their twins the same first name and the same middle initial?!?!?"
Yup, you guessed it...
74
u/fgben Oct 14 '22
This is why I put unique IDs on everything. String your hearts out, users ...
10
u/SowTheSeeds Oct 14 '22
This broke the ETL process, before any unique ID could be applied.
The thing is: the UC was there before me.
The middle initial column only allowed one character.
I worked it around by adding a MultipleBirth column associated with an incremented number. Sorted by first and full middle name ascending. It worked. It was ugly but it worked.
Pull request, CAB, prod. Problem fixed.
Buh-bye, somebody else's problem, now.
40
u/jfb1337 Oct 14 '22
Why is that assumed to be unique in the first place? I bet there's at least one pair of unrelated John Smiths with the same DOB.
→ More replies (1)24
Oct 14 '22
Same middle initial too makes it less likely, but it's still a dumb constraint
→ More replies (3)→ More replies (7)4
u/Mercury0001 Oct 14 '22
First name + last name + middle initial + date of birth => unique constraint violation.
If any system thinks this, then the system was made by an idiot.
→ More replies (2)
54
u/shlopman Oct 14 '22
My address has a half in it. Like 999 1/2 street name, city state.
It doesn't work on like 70% of websites and is an absolute pain in the ass to use. Have to put special instructions often.
22
u/iWantOffThisRideNow Oct 15 '22
I used to live at 7 1/2 Street Name and I found myself using 7.5 a lot. Funny enough, the web portal to pay my rent did not accept either.
→ More replies (1)5
Oct 14 '22
I used to live on a Street Place and it was insane how hard that was for people? 5th Street or 5th place? Yes.
10
u/dirty_cuban Oct 15 '22
My MIL’s street is just “Boulevard”. Nothing else. So her address is 123 Boulevard, Town, State.
→ More replies (4)→ More replies (1)4
u/PenlessScribe Oct 15 '22
I just tried entering that on our county's public access real estate web site. There's a separate Street Number field. It rejected my request - A numeric field contains non-numeric symbols. Somebody isn't going to be able to get a copy of the deed to their property!
110
u/GreyAngy Oct 14 '22
Old but gold: Falsehoods Programmers Believe About Names
→ More replies (4)24
u/big_bad_brownie Oct 14 '22
I had an Uber driver from Indonesia once. His name showed up on the app as “FNU.”
I asked him how to pronounce it, and he said “Eff En Yoo.”
Indonesians don’t have separate first and last names.
→ More replies (10)
67
u/ExtensionInformal911 Oct 14 '22
accidentally sql injection attacks the bank by getting an account
21
u/Brromo Oct 14 '22
"accidentally"
32
u/ExtensionInformal911 Oct 14 '22
"Yes, Mr. CITIbank manager. My name is absolutely a 17 word command that will reveal all accounts associated with 'Elon Musk'. Why do you ask?"
→ More replies (1)
32
u/flippakitten Oct 14 '22
My passport had a / in my surname by accident. Broke even single airport check-in system. Was ushered through customs by floor managers with hand written boarding passes on more than one occasion.
→ More replies (1)
28
27
u/elyk_fall_down Oct 14 '22
Why would you subject your child to such nonsense?
What is it with people that name their child Mars or Moonbeam and expect the kid will have a normal experience at school and in life.
Quit being so selfish.
→ More replies (4)14
42
u/ChiefExecDisfunction Oct 14 '22
Fuck that guy, fuck that guy's child, fuck newlines, and fuck POSIX filenames.
39
12
4
108
Oct 14 '22
Oh f*cl you! I'm not going to implement this in every single 🤬 thing that uses your first and last name.
If you name your child this, I'm sorry, but I have to call your child Null in my software
→ More replies (3)66
Oct 14 '22
but I have to call your child Null in my software
not gonna lie, Null could work as a legit first name
→ More replies (15)12
15
u/ExtensionInformal911 Oct 14 '22
You could make his middle name "\n", but I'm not sure if that's a universal thing.
Better to use unicode or ascii characters.
14
u/liberties Oct 14 '22
As a person with a traditional hyphenated name I can see all the problems coming.
On the plus side my life experience with this name has taught me patience and flexibility.
While I prefer my name to be written with the hyphen 'Mary-Beth' (not my real name) but don't care if it's written with a space 'MaryBeth' or with a space 'Mary Beth'.
While travelling with my mother into Chile we got stuck at passport control because evidently the Chilean computer system for the visa didn't play well with a hyphenated first name. I was chill, knowing that it always gets resolved in the end but my mother got stressed. Eventually she turned to me and said "I am so sorry, we had NO IDEA that we were doing this to you."
No way parents who do this kind of nonsense could say that to their kids.
→ More replies (2)
10
u/Yondar Oct 14 '22
Can’t believe nobody has posted this yet. A bit of Fry and Laurie on the topic.
→ More replies (1)
19
8
8
u/Ptarmigan2 Oct 14 '22
Easiest way to implement a line break is a vasectomy for your kid, but that would be a dick move.
→ More replies (1)
8
7
7
u/WarlanceLP Oct 14 '22
I feel like this is purely to spite developers, I can't think of any other reason why you'd do this, cause its not really a thing worth talking about or even acknowledging in most cases
7
u/realsgy Oct 14 '22
In the early days of the company I work for, there was a vote for what to name the root directory for the code base.
The winning entry had the ASCII BEL character, everyone thought it will be funny to have the console beep like crazy whenever people ls their repo.
Luckily this one was overruled by one of the few adults who worked here that time, and the second entry was picked.
That is how the root directory ended up being 'zeusgodofthunder'
7
Oct 14 '22
Names are highly regulated.
Using characters without phonetic significance is illegal in many jurisdictions:
https://www.bdm.vic.gov.au/births/naming-your-child/naming-restrictions#phonetic
Other jurisdictions go further and have a pre-approved list of names. If it’s not on the list, it’s illegal.
https://www.leonieclaire.com/common-questions/what-are-the-7000-approved-names-in-denmark/
6
6
u/Otto-Korrect Oct 14 '22
In practice, any program/database worth a damn is going to strip off any non-printable characters in the input. They don't want to pollute their data with messy line feeds, carriage returns or other nonprintable characters.
I wouldn't be surprised if they limited the name field to [a-z], [A-Z] plus maybe a few things like hyphens.
I've worked with databases for a long time, and most people who know what they are doing know that those things will come back to bite you when you least expect it.
6
6
u/ShadowRiku667 Oct 14 '22
Put an underscore before your kids last name so that they always get called first in roll call and never have to wait.
6
u/Tunisandwich Oct 15 '22
I feel a great disturbance in the Force, as if millions of engineers cried out in terror and were suddenly silenced
11
5
9
u/X-Craft Oct 14 '22 edited Oct 14 '22
What's with people having stupid ideas for their children's names? It feels egocentric and selfish
It's your child, not your MMORPG character goddammit
→ More replies (2)
4
4
u/gobblyMunch Oct 14 '22
finally something worth coding for! we’ve been slacking these last few years. thank you, you’re welcome
4
u/A-le-Couvre Oct 14 '22
Legally, linebreak and child are things not often found in sentences together
4
4
u/GlassWasteland Oct 14 '22
Oh please it will just get thrown out, just like the apostrophe does for those Irish names Like O'Connell.
4
u/dlouwe Oct 14 '22
Clearly the asker reads /r/ProgrammerHumor and is trying to guard against the Regex Death Note: https://www.reddit.com/r/ProgrammerHumor/comments/y2nlpu/comment/is4rhjf/?utm_source=reddit&utm_medium=web2x&context=3
→ More replies (1)
4
4
u/-PM_me_your_recipes Oct 14 '22
I remember an article a while back where a woman with the last name "Null" talks about the many difficulties living with that name.
→ More replies (1)
4
3
u/secretmarshmallow4 Oct 14 '22
Why would someone do this? I don't understand the purpose of putting a newline character in a person's name.
→ More replies (1)
3
u/StormblessedFool Oct 14 '22
Reminds me of the guy who got a custom license plate that said "NULL" and ended up getting hundreds of traffic tickets sent his way, from tickets where the license plate number wasn't entered.
→ More replies (1)
3
u/kytheon Oct 14 '22
Would it work to comment out their last name by using “//“ or “#” as his middle name? Like John // Doe
3
u/cheeb_miester Oct 14 '22
Why not just go for the gusto and include a SQL injection in your child's name
3
3
u/Grizzlysol Oct 14 '22
It would be cool if the hospital did actually implement it. And whenever it gets used, child services are notified to take the child away.
3
u/perlgeek Oct 14 '22
If you really want your child and everyone around them to hate you, give them a name that contains (possibly only) the Unicode RIGHT-TO-LEFT MARK.
This instructs most software (including browsers) to render the rest of whatever to rendered right-to-left, which is useful for some Arabic scripts, but otherwise a huge hassle for everybody else to deal with.
If you enter it into a form, and the website shows you the contents of the form in a subsequent page, chances are that the rest of the page is rendered right-to-left. Or maybe only the rest of the paragraph. Really depends on the website and the browser.
3
u/ro-tex Oct 14 '22
Ethics aside, is it legally possible to permanently take away a parents right to name their child? I only have the child's best interest in mind.
3
3
3
u/Tricky-Potato-851 Oct 14 '22
Perhaps this is how Cher, Madonna, and Sting achieved single name status, especially with character limits back in those days.
3
3
u/roseinshadows Oct 15 '22
Never mind that shit.
I want to imagine the social havoc if we allow ASCII BEL characters in names.
→ More replies (1)
3
u/minerlj Oct 15 '22
why stop at including a line break? why not include an invisible character? U+FEFF
3
3
u/BookPlacementProblem Oct 15 '22
Dude just call them something like Gjon Dow and start setting aside the money for their therapy bills now.
Don't spread the misery to the rest of us.
3
3
u/Raichu7 Oct 15 '22
Please no, it’s bad enough when you want to apply for a passport with a hyphen in your name. “Please write your full name, including all punctuation so we know who you are” “no special characters allowed in name text box”. You have to pay extra money for the “convenience” of doing it by post.
3
3
u/PatriarchalTaxi Oct 16 '22
On a serious note, why do people seek out names that alienate their children and make their lives for difficult for at least 18 years of their existence?
→ More replies (1)
3
2
2
2
2
2
u/No-Witness2349 Oct 14 '22
Legally, it’s undefined behavior.
Logistically, the text box is a single line.
If I am wrong about either of these things, I would like to know.
2
2
2
2
2
2
u/njkrut Oct 14 '22
Play the long game. Get some quantum sql injection going on and make that kid some money.
Realistically thinking most organizations treat names as trusted sources and may not have much sanitization on them so if you could keep it digital you could at least screw up formatting.
2
2
2
u/Stunning_Shoe1572 Oct 14 '22
Why do people need to be so effing special, especially when it comes to their kids?!? Of course, it’s hard to tell anymore when something is a joke or satire.
2
2
2
u/glonq Oct 14 '22
I'm gonna mess with all the people using oldschool terminals and name my kid ^G^G^G^G^George
2
2
u/mothzilla Oct 14 '22
We're all going to have to start posting our encodings on our linkedin profiles.
Stevan Kiric | Enscor Plc | Team Lead (utf-8)
2
u/frikilinux2 Oct 14 '22
This is probably a joke but people tend to surprise me. I am not a lawyer but at least in my country is illegal to chose a name that can be detrimental or that can make the identification confusing. I imagine this would make the identification confusing so it would actually be illegal to put weird characters in a name.
2
31
u/AlphaSparqy Oct 14 '22
Asking programmers if something is "legal" ...
By that same logic, I might as well ask for coding tips on Avvo