84
When Your Last Name Is Null, Nothing Works
(www.wsj.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Who the hell writes
if 'null'
? If it's a thing, what language would interpret a string like that?Fucking JavaScript
No it doesn't?
Srsly?
Javascript is fun. The video takes a few jabs at ruby and then gives a glimpse into the insanity that is Javascript.
More of this please
!![] + !![] == 2
I'd bet it's less simple input sanitizing and more 2 mistakes made separately because they don't know any better.
If the front end Dev makes the first mistake, null would be sent in the body as "null". Then on the backend, somebody might even be binding the variables correctly, but before hand realizing they have to deal with the market and rather than just have a conversation undoes it in their own code.