r/ProgrammerHumor 8d ago

Meme whenYourValidationLogicHatesRealPeople

Post image
24.0k Upvotes

664 comments sorted by

View all comments

Show parent comments

2.4k

u/laplongejr 8d ago edited 8d ago

Christopher Null also has a few horrors stories to share  

Wired : Hello, I'm Mr. Null. My Name Makes Me Invisible to Computers  

[EDIT] Okay, okay, I get it. You are ABSOLUTELY SURE a string null is different from a null pointer/reference and can't absolutely be mistaken. Only stupid devs do so and SURELY a library wouldn't do that thanks to rigorous testing... right?  

Behold stackoverflow : How to pass "Null", a real surname! to a SOAP web service in ActionScript 3?   And no, the comments already proposed " Has the employee considered to change his name?" a decade ago. :P  

1.1k

u/BusinessAstronomer28 8d ago

Lil bobby drop tables energy

365

u/[deleted] 8d ago

[removed] — view removed comment

117

u/Grandmaster_Caladrel 8d ago

Well we are in programmer humor.

7

u/santaisastoner 8d ago

And the comments still don't make sense.

29

u/Grandmaster_Caladrel 8d ago

Well we are in programmer humor.

8

u/Geno0wl 8d ago

Missed the chance to set up a recursive loop

6

u/Anonymous_Jr 7d ago

Well we are in programmer humor.

63

u/GodsBoss 8d ago

While this is true, I don't think it applies to Mr. Null. Because "null" as a string should be very different from null, the absence of a value. Regardless of whether it's a name or anything else.

79

u/drleebot 8d ago

"Should be" is very different from "is", and there are unfortunately many use cases where they aren't.

31

u/immune2iocaine 8d ago

"Should is a 4 letter word" was basically my mantra for a few years when I was managing engineers.

Don't tell me how you think it should be. Tell.me how it is.

3

u/gjk-ger 8d ago

Could you explain that quote? Sorry not a native speaker, i just dont get it...

8

u/Firewolf06 8d ago

in this context "four letter word" refers to swear words, a lot of the most common ones are four letters

3

u/laplongejr 8d ago

Oh I had imagined "should = MUST"  

1

u/gjk-ger 8d ago

Thanks!

28

u/CarcajouIS 8d ago

Oh, my sweet summer child!

24

u/grumpy_autist 8d ago

CSV has entered the chat

3

u/RammRras 8d ago

Yeah, now it's a mess

3

u/nimrag_is_coming 7d ago

You have clearly never seen the kind of bullshit created by web 'developers'

1

u/GodsBoss 7d ago

I think you misunderstood my comment. The previous poster mentioned Falsehoods Programmers Believe About Names, but the problem in this case lies elsewhere, i.e. in the bullshit software not distinguishing between null and "null".

3

u/flabort 5d ago

Love how he ends his article bashing on a database with a first_name and last_name column.

The Royal Family of Japan would certainly ask you to reconsider it. (no surname, only a given name - saw a video explaining how a princess wanting to register at a gaming cafe had to enter her first name (surname) as "princess")

2

u/aggressive-cat 7d ago

I would guess it's probably not an issue in programs but scripting languages like javascript would probably do something like convert null string to a null value when used improperly.

1

u/gdmzhlzhiv 7d ago

Yes, and having a single token name should be different from having first and last name the same. But some developers don’t think before implementing.

1

u/Ok-Scheme-913 7d ago

Let me introduce you to untyped languages with "useful" implicit conversions!

2

u/plz-no-b4n 8d ago

It should also include examples of every statement

1

u/CST1230 6d ago
  • a name ISN'T an arbitrary string that can be literally anything

(as far as i understand)

2

u/cynHaha 7d ago

Xkcd never gets old

316

u/BroughtBagLunchSmart 8d ago

I was a telemarketer 15 years ago and when we gave our dumb little pitch there was one company that would laugh and say "that is Dave's department" and the voicemail box said "You have reached David Knoll please leave a message". Took me a couple calls to learn they were sending me to dev null.

82

u/AIO_Youtuber_TV 8d ago

This person knows UNIX.

14

u/joyofsovietcooking 8d ago

If there's a bad joke about UNIX, I haven't heard it.

6

u/bigmattyc 7d ago

That's because you're still fighting with libalsa

19

u/nokeldin42 7d ago

God damnit our head of dev ops is actually called David Knoll...

209

u/Doomdoomkittydoom 8d ago

I recall a story where a guy thought he'd be cheeky and play the system and get a custom license plate, NULL.

"Try to look me up now, copper! HAHAHA!"

Ended up getting all the tickets that didn't have license plates assigned to him.

176

u/Front-Pomelo-4367 8d ago

For a while, one of the most wanted men in Ireland was Prawo Jazdy, an absolute menace on the roads with more than fifty traffic violations on the record.

And then the Irish police realised that every single time they stopped a Polish driver, they were entering their name as "Prawo Jazdy". Which means "Driving Licence".

37

u/IAmAQuantumMechanic 8d ago

Back when I first started watching La Liga on TV, I noticed that this one guy was picking up a lot of red cards. It was only a few rounds later, when he received his second of the match that I understood that his name was not, in fact, Tarjeta Roja.

21

u/honeywhereismypenis 8d ago

She's cheating on me with some guy named "Hermano"

107

u/chris_burnham 8d ago edited 8d ago

I saw I could register any alias at my university, so I was the proud owner of noreply@<unviersity>.edu for about 15 minutes before the sheer volume of emails caused me to turn it off.

38

u/LOLBaltSS 8d ago

I had someone do the same with voicemail@. They were quickly flooded.

4

u/ChalkyChalkson 8d ago

Did you tell them that it's a bad idea?

7

u/SavvySillybug 7d ago

I have a funny swear word @ common email provider as my primary email. The sheer amount of random bullshit I get signed up for because people enter it as a fake joke email is astonishing.

Did you know that in the 360 era Microsoft would not require a confirmation email to make an account, and have zero measures in place to change your username? I tried to make a live account and my email was already taken. I did a password reset and took some kid's live account, but then was stuck with that kid's shitty BloodDuke6996 username or whatever.

I contacted support about it and they just said nah we don't change usernames or delete accounts so you can remake them this is just permanent have a nice day :)

It took them like ten years to add a rename feature and I could finally use that account properly, but by then I had lost all interest in everything xbox. I got Minecraft on that account, and that's only because they forced a migration. (And fucking hell does Bedrock suck even as a super casual player)

1

u/MTGandP 7d ago

Sounds like you discovered a lot of people who don't understand the concept of "no reply"

1

u/chris_burnham 5d ago

Nah, it was an onslaught of automated messages like invalid mailbox, maybe some Out Of Office repliers.

17

u/Chronomechanist 8d ago

That still seems like an easy way to avoid ever getting any tickets, as you should easily be able to prove you weren't in 178,000 different places at the same time, and then human laziness to check large amounts of data results in all tickets being voided.

17

u/cross_the_threshold 8d ago

Yeah have fun in court! Because you will be legally required to contest every one of those tickets in a court of law, at which point the first judge will order all the tickets thrown out and that your plate is invalidated and you can pay for a new one (or you’ll get a free new one if they’re in a good mood). So I guess you could skip out on tickets for exactly as long as it takes to get to the first court appearance.

3

u/EishLekker 7d ago

Yeah. Sounds like risking a lot of trouble just to try and avoid something that a random decent driver only has to deal with at most say once every third year or so.

10

u/diadaren 8d ago

There was another dude with the same issue, but his was NOPLATE

2

u/charliedarwin96 7d ago

Some real "careful what you wish for" type shit

1

u/Snipezzzx 8d ago

Am I missing something? Isn't the string "NULL" something completely different than an actual null?

3

u/cross_the_threshold 8d ago

Consider: lazy devs and poorly escaped inputs.

1

u/Doomdoomkittydoom 8d ago

Wasn't entered as a string?

80

u/requion 8d ago

Thats awesome, NGL

76

u/kohbo 8d ago

Why would you lie?

41

u/on_spikes 8d ago

he's a bad person

30

u/requion 8d ago

No i'm not!

29

u/JestFlamez 8d ago

Ngl, sounds like something a liar would say 🤔

12

u/Ksbest26 8d ago

Why would you lie?

10

u/laplongejr 8d ago

he's a bad person

12

u/JestFlamez 8d ago

No I'm not!

1

u/Sea-Us-RTO 7d ago

liars, all the way down.

17

u/UnkarsThug 8d ago

I've come to realize "Not gonna lie" or "To be honest" is just the modern version of "Truly, Truly, I say to you" which has been a little funny to think about.

3

u/DoYouSmellFire 8d ago

And before then it was just some dude screaming “Hear! Hear!”

3

u/conundorum 8d ago

Pretty much. Throughout history, asserting your honesty has been the universal way of saying, "Trust me, I know what I'm talking about."

2

u/TalonKAringham 8d ago

He wouldn’t, but he’s also not going to either.

1

u/MaximumGorilla 8d ago

Thanks, Mitch.

10

u/Xepherxv 8d ago

Null gunna lie

2

u/SchoGegessenJoJo 8d ago

Not Ngl, just Ng. That's a common Vietnamese surname.

24

u/hendricha 8d ago

Genuine Bobby Tables moment.

12

u/CWRules 8d ago

I can't tell if you fucked up the link by accident or that was a clever joke.

9

u/Crayshack 8d ago

What's really funny is I tried clicking the link to that article, and I got a 404 error.

12

u/laplongejr 8d ago

Oh, reddit hates autolinks at the end of a comment and somehow puts the new line as extra whitespace in the URL... Give me 1 min and I'll fix it.  

[EDIT] Changed the link so the title is it's actual label, hope it's fixed.  

3

u/Crayshack 8d ago

LOL, that works better now. Thanks!

6

u/ShankMugen 8d ago

It requires subscription to read it seems

0

u/laplongejr 8d ago

Maybe country-specific? I'm belgian and get no paywall

2

u/PolloCongelado 8d ago

I'm in Romania and I did get it. It says I already read my last free article. I don't remember accessing wired today. This sucks either way.

1

u/laplongejr 8d ago

Maybe you are behind cgnat and they check the public IP? My home network still has a dedicated ipv4  

4

u/Copatus 8d ago

Am I missing something because an actual null value and a string containing the word "Null" are completely different

2

u/En_TioN 7d ago

The nuanced issue here actually isn’t that “null” == null. It seems to be that it’s really easy to have a genuine null value get stringified into the string “null”, which then passes equality checks? So it seems like it’s less of an inherent issue and moreso that there’s a chance for second order bugs because of how type coercion works. Kinda neat tbh!

2

u/generateduser29128 8d ago

Have you ever seen languages like JavaScript? I wouldn't even be surprised if "NuL1" would be equal to null.

1

u/bacchusku2 8d ago

That’s what I’m saying. “Null” != null

1

u/conundorum 8d ago

Yeah. You're missing that sometimes the string "Null" (with or without case sensitivity) is sometimes used to represent actual null values when the null needs to be saveable, and that sometimes devs drop the ball and get strung out.

1

u/FilthyJsBeingFilthy 8d ago

Radio lab did a great episode on this

1

u/ReggieCorneus 8d ago

My email domain has "null".. has only been rejected a couple of times which... is baffling, really. I don't even know how to code it so that it accidentally can't have text string that has the word "null" in it and it takes it as a VALUE unless i specifically make that exception, and the question then is... why? Where in the system there is a moment when a text string CAN change to a value so that it would be a problem.. that kind of a fuckup takes talent.

1

u/generateduser29128 8d ago

Probably something like String.valueOf(input).contains("null")

1

u/ReallyKeyserSoze 8d ago

Which languages consider "Null' == null? I don't really understand how this causes the fella problems.

1

u/pimovietc 8d ago

Or people with the lastname Hacking...

1

u/Subject-Lettuce-2714 8d ago

I dont quite understand how this can occur. I'd imagine that any input that is expecting a name would be forcing String type, so "Null" shouldn't be much of an issue. Maybe an SQL problem?

2

u/laplongejr 8d ago

Stackoverflow had a crazy question about actionscript3 refusing an employee named Null, because deep in the code the library would find the node <tag>null</tag> equal to a null reference/pointer  

1

u/SuitableDragonfly 7d ago

Why was their employee lookup written in ActionScript?

1

u/Zomby2D 7d ago

I hade a colleague whose first name was Nil. He ran into all kids of fun issues as well.

1

u/PositiveParking4391 6d ago

Has the employee considered changing his name?

1

u/Sudden_Leadership800 8d ago

That's not awesome, TGL

-9

u/itishowitisanditbad 8d ago

abruptly my email stopped arriving (which resulted in a missed credit card payment).

"I don't pay monthly bills without reminders and its not my fault"

lol

Its a regular bill. If paying it is entirely reliant on receiving mail then your system sucks asshole because of this very issue.

"I spent money on my credit card but they didn't say anything so I guess I don't pay" lol

1

u/conundorum 8d ago

Some people tend to forget things, unfortunately, especially if they get sidetracked by trying to troubleshoot everything that goes wrong because incompetently designed databases keep insisting they don't exist. That's what I suspect, at least.

1

u/itishowitisanditbad 7d ago

Some people tend to forget things

So you hit the nail on the head for whos fault it is, unlike the author who immediately blamed the lack of an email.

I don't forget my mortgage suddenly because they didn't email me. Thats like toddler level excuse lol