Earlier quoted context omitted.
That character is a backtick not a grave isn't it? Also some cultures use «» as quotes. It's a big world.
Is there a difference? I think those are both words for the same character.
My last name makes me invisible to Computers (2015)
61–70 of 140 posts
Re: My last name makes me invisible to Computers (2015)
#62Earlier quoted context omitted.
Right, but that operator is implicitly casting the null object to a string type – it has to, in a strict sense... some other languages would raise an error (and many would do the same as Java).
It doesn't have to. null.toString() throws NPE as it should. I would expect "foo" + null to throw NPE as well. BTW there's another "fun" gotcha, when you interface java code and oracle database which consider empty string and null to be the same thing. Depending on how you handle data from database you end up with null, "", or "null" :)
Re: My last name makes me invisible to Computers (2015)
#63I'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…
Javascript lets you do it if you use the equality (==) instead of the identity (===).. i think.
Re: My last name makes me invisible to Computers (2015)
#64obligatory xkcd https://www.xkcd.com/327/
Re: My last name makes me invisible to Computers (2015)
#65I have seen apps that choke on much more common names. Like O'Brian. This post is a classic on various name issues: http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-b...
It's not always a computer problem. I have an O' name. There have been many college educated adults I've had to explain the difference between a quote ("), an apostrophe ('), and whatever the hell you call the character under the tilde (`). I kid, it's the grave.
paul@tal:~$ od --format=x1z tmp/tonos-oxia
0000000 74 6f 6e 6f 73 3a 20 ce ae 0a 6f 78 69 61 3a 20 >tonos: ...oxia: ....
It's super fun when you are the only tech person in a Classics grad program and everyone else is turning in papers that look like ransom notes, because every fourth vowel has a different x-height from all the other letters. :-)Here are the two Unicode ranges (PDF):
modern Greek: http://unicode.org/charts/PDF/U0370.pdf
ancient Greek: http://unicode.org/charts/PDF/U1F00.pdf
Then again, try explaining to tech people the difference between ή and ἠ and how you can get ἤ or ᾔ. :-)
Re: My last name makes me invisible to Computers (2015)
#66Re: My last name makes me invisible to Computers (2015)
#67Re: My last name makes me invisible to Computers (2015)
#68I'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…
First,Middle,Last
Alice,Q,Foo
Bob,NULL,Bar
In a world like that, some code got written in the wrong tier to output value.toUpper() == "NULL" ? "" : value
and you wind up with a web form that can't roundtrip a name that contains the word 'null'.Re: My last name makes me invisible to Computers (2015)
#69Re: My last name makes me invisible to Computers (2015)
#70Earlier quoted context omitted.
Right, but that operator is implicitly casting the null object to a string type – it has to, in a strict sense... some other languages would raise an error (and many would do the same as Java).
It doesn't have to. null.toString() throws NPE as it should. I would expect "foo" + null to throw NPE as well. BTW there's another "fun" gotcha, when you interface java code and oracle database which consider empty string and null to be the same thing. Depending on how you handle data from database you end up with null, "", or "null" :)