mr. null
-
Yeah, that's what I was thinking. What bassakward software is written to see a "null" STRING as a null object pointer. WTF? Very poorly written software. And I'm wondering just how real this is?
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Methinks it isn't. "Null" != "null"; and does it happen to "nulls" also? Come on, a string literal is exactly that, an array of byte in a specific encoding, and it does not magically become a null-pointer. Sound like something only an idiot would parse in each user-input. Then again, the heir to the throne of idiots may have decided that a NVARCHAR text of 'Null' is actually null. I doubt we will find out.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
-
Methinks it isn't. "Null" != "null"; and does it happen to "nulls" also? Come on, a string literal is exactly that, an array of byte in a specific encoding, and it does not magically become a null-pointer. Sound like something only an idiot would parse in each user-input. Then again, the heir to the throne of idiots may have decided that a NVARCHAR text of 'Null' is actually null. I doubt we will find out.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
Eddy Vluggen wrote:
Methinks it isn't.
Agreed.
Eddy Vluggen wrote:
something only an idiot would parse
Indeed.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
There's probably some code somewhere in the frontend/backend that's comparing the string to "null" because the developers doughheads decided that was the way to represent (no data) for certain db fields instead of using the more reasonable dbnull field concept.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
TheGreatAndPowerfulOz wrote:
developers doughheads
LOL
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
-
There's probably some code somewhere in the frontend/backend that's comparing the string to "null" because the developers doughheads decided that was the way to represent (no data) for certain db fields instead of using the more reasonable dbnull field concept.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Or possibly the management decided that.
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
-
Or possibly the management decided that.
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
yah, it does sounds like a manager sort of thing to do...
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Really? Java converts a string variable with the contents "null" into a null object pointer? Really? I think maybe you mean JavaScript, but even then that doesn't do what you suggest (convert a string containing "null" to a null pointer).
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
I can see that I was quite unclear, or even erroneous, in my answer to Eddy. What I meant to convey was merely the existence of the literal 'null'. This is why I asked "But which other languages does the same". And I know this isn't converted to a null object pointer, 'null' in Java is a type[^] not a pointer. This is the reason I responded to Eddy that it is an abstraction. I'm sorry to have ticked you off so badly.
Wrong is evil and must be defeated. - Jeff Ello
-
My thoughts exactly! It takes A LOT OF WORK to translate "null" into null... :~ At least in the languages I know. Unless...
<script>
var name = 'null';
if (name == null) {
alert("That's a lovely name " + name + '!');
} else {
alert('Please insert a name!');
}
</script>Yep, JavaScript as always X| And it's only the one language that's used for every website everywhere. Just "if (name)" would've been fine though... JavaScript... Y U DO DIS!? :confused:
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Running that script in Chrome alerts "Please insert a name". Even JavaScript isn't that bad. Close, but not quite that bad.
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
Running that script in Chrome alerts "Please insert a name". Even JavaScript isn't that bad. Close, but not quite that bad.
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
Please see my earlier reaction[^]... :laugh:
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
I can see that I was quite unclear, or even erroneous, in my answer to Eddy. What I meant to convey was merely the existence of the literal 'null'. This is why I asked "But which other languages does the same". And I know this isn't converted to a null object pointer, 'null' in Java is a type[^] not a pointer. This is the reason I responded to Eddy that it is an abstraction. I'm sorry to have ticked you off so badly.
Wrong is evil and must be defeated. - Jeff Ello
Sorry if I gave the impression that I was "ticked off". I was just surprised that someone would seem to "believe" what you wrote.
Quote:
There is also a special null type, the type of the expression null (§3.10.7, §15.8.1), which has no name.
Doesn't that say that 'null' is an expression whose type is also null? How else can we compare a java reference value (an expression) to null unless null is also an expression (i.e value)?
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Sorry if I gave the impression that I was "ticked off". I was just surprised that someone would seem to "believe" what you wrote.
Quote:
There is also a special null type, the type of the expression null (§3.10.7, §15.8.1), which has no name.
Doesn't that say that 'null' is an expression whose type is also null? How else can we compare a java reference value (an expression) to null unless null is also an expression (i.e value)?
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Interesting choice of words, isn't it. Especially when you read two rows below.
Quote:
The null reference is the only possible value of an expression of null type.
But since the null type is mentioned together with reference types and primitive types I don't feel there is any doubts about the intensions.
Wrong is evil and must be defeated. - Jeff Ello
-
Interesting choice of words, isn't it. Especially when you read two rows below.
Quote:
The null reference is the only possible value of an expression of null type.
But since the null type is mentioned together with reference types and primitive types I don't feel there is any doubts about the intensions.
Wrong is evil and must be defeated. - Jeff Ello
Sure, the obvious intention that "null" is both a value expression and a type. Although you can never access the null type only the null value expression.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun