Re:My last name makes me invisible to Computers (2015)
by jugg1es on Friday August 18, 2017 @10:51AM
(#15046682)
Javascript lets you do it if you use the equality (==) instead of the identity (===).. i think.
[ Parent
| on HN ]
Re:My last name makes me invisible to Computers (2015)
by faceplanted on Friday August 18, 2017 @10:57AM
(#15046744)
Javascript lets you do anything wrong if you use == and not === though, I'm pretty sure the machine apocalypse is going to happen because someone types == instead of === at this point.
Re:My last name makes me invisible to Computers (2015)
by TallGuyShort on Friday August 18, 2017 @11:31AM
(#15047055)
At least if the Terminators are running JavaScript they'll be pretty easy to thwart.
Re:My last name makes me invisible to Computers (2015)
by unkown-unknowns on Saturday August 19, 2017 @12:20PM
(#15054172)
Blackhat conference talk we might see in the future: "How I achieved remote code execution on the T-1000 and singlehandedly averted the extinction of the human race"
Re:My last name makes me invisible to Computers (2015)
by nulagrithom on Friday August 18, 2017 @03:53PM
(#15049232)
Nope. Not even JavaScript screws this one up. You've got to be doing something stupid with strings to get tripped up by "Null".
Re:My last name makes me invisible to Computers (2015)
by swalsh on Friday August 18, 2017 @09:18PM
(#15051018)
Imagine a protocol that uses xml.... there's a few out. There are no quotes so null as a string will look exactly the same as A NULL value.
Re:My last name makes me invisible to Computers (2015)
by kpil on Saturday August 19, 2017 @09:14AM
(#15053167)
But that's just the tip of the iceberg that xml is a amateurish protocol language. I'm so glad that it's finally dying.
Unfortunately it's replaced by something even more messed up
Re:My last name makes me invisible to Computers (2015)
by ams6110 on Friday August 18, 2017 @10:09PM
(#15051240)
Given that the entire protocol of the web (html and http) is string-based, that's not very unlikely.
Re:My last name makes me invisible to Computers (2015)
by profmonocle on Friday August 18, 2017 @10:58AM
(#15046748)
Just tested (in the node CLI console) and that doesn't seem to be the case.
Edit: It's true in PHP though. :-/
Re:My last name makes me invisible to Computers (2015)
by tyingq on Friday August 18, 2017 @11:05AM
(#15046816)
>Edit: It's true in PHP though. :-/
Can you post exactly what you did in PHP that shows "NULL" is equal to NULL? There's quite a few approaches like ==, ===, and is_null(). I can't get any to think "NULL" is NULL, though I imagine I'm missing something.