... Ah.. Uhh. Programming makes my head explode. My friend shoved Python, AppleScript, and C down my throat last year when we were teacher aides in a computer class. I don't like if statements.
Sure, it's amazing - but having to multiply form values by one and then having to add them just to make them ints confuses and angers me. Would it have killed them to implement . as a string concatenator, like PHP does?
Bah, whatever - Javascript is a pissant little language that's suddenly important because people realized the power of Ajax.
You're bitching that you have to use a plus symbol versus a period? Or you're bitching that the plus symbol doesn't actually add a goddamned thing, it simply connects the terms at the hip (more or less)?
I'm guessing both, because you're a jew like that.
The problem is that the + operator has been ambigously defined to do different things in different circumstances. If it is given two numbers, it will add them normally, however, if it is given two strings, it will concantenate them like Pavel demonstrated in the previous post. There really is no reason for such sloppy notation, and I'm sure they could have chosen another intuitive way of expressing the same thing.
I'm guessing from his previous posts that at some point Pavel tried to add the input to two forms, which are strings, and got another string, rather than the number he desired, which probably lead to hours of debugging.
Comments 21
Reply
Java, such a distant memory... damn those semicolons!
Reply
Reply
Reply
And in the end, isn't that what counts?
Reply
Reply
int + int = int
literal + literal = string...
this is why I stick to php/perl though, I hate writing classes and overloading shit and all that jazz.
Reply
Bah, whatever - Javascript is a pissant little language that's suddenly important because people realized the power of Ajax.
Reply
You elitist asshole.
Reply
"dog" . "cat" == "dogcat"
In Javascript, they use a plus.
"dog" + "cat" == "dogcat"
Annoying!
Reply
You're bitching that you have to use a plus symbol versus a period? Or you're bitching that the plus symbol doesn't actually add a goddamned thing, it simply connects the terms at the hip (more or less)?
I'm guessing both, because you're a jew like that.
Reply
I'm guessing from his previous posts that at some point Pavel tried to add the input to two forms, which are strings, and got another string, rather than the number he desired, which probably lead to hours of debugging.
Reply
Leave a comment