Live data from Hacker News

My last name makes me invisible to Computers (2015)

wired.com

1–10 of 140 posts

Re: My last name makes me invisible to Computers (2015)

#6
I've been programming for over a quarter century, and I feel pretty confident that I've never written anything that could confuse 'null' with NULL. I can't even think of a language that would let you easily do this.

If web forms aren't accepting NULL, then somebody probably specifically programmed the word 'null' into a filter of disallowed entries. Probably to stop clerks from entering the word 'null' to mean empty string. This has nothing to do with null being a reserved word in many languages, I'll bet the forms that aren't accepting 'null' aren't accepting 'none' or 'empty' either.

Re: My last name makes me invisible to Computers (2015)

#7
post #5

what languages don't distinguish between literal null and a string with content "null". More importantly, who the fuck used such monstrosities?

Oh, let me tell you about the saga of Mr Curl trying to update his billing information at a company I used to work for...

Re: My last name makes me invisible to Computers (2015)

#8
post #5

what languages don't distinguish between literal null and a string with content "null". More importantly, who the fuck used such monstrosities?

Oh, let me tell you about the saga of Mr Curl trying to update his billing information at a company I used to work for...

I don't understand. Are you agreeing with me or suggesting a string with the contents "curl" will somehow cause the server to execute the curl command?

Re: My last name makes me invisible to Computers (2015)

#9
post #5

what languages don't distinguish between literal null and a string with content "null". More importantly, who the fuck used such monstrosities?

I don't think it's a specific language. It's typically some protocol or library or developer inventing their own "nullable value" placeholder.

Like this: https://issues.apache.org/jira/browse/FLEX-33644

Re: My last name makes me invisible to Computers (2015)

#10

I've been programming for over a quarter century, and I feel pretty confident that I've never written anything that could confuse 'null' with NULL. I can't even think of a language that would let you easily do this. If web forms aren't accepting NULL, then somebody probably specifically programmed the word 'null' into a filter of disallowed entries. Probably to stop clerks from entering the word 'null' to mean empty…

String interpolation will often end up crossing the barrier between NULL as an empty pointer value and "null" as an ordinary string.
Post reply on HN