That's fine. You're missing some punctuation, though.
Faxmachinen
@Faxmachinen
Best posts made by Faxmachinen
-
RE: Spot the bug: javascript queue
If the queue is used often enough, you'll get integer overflow.
Ironically enough, a silent integer overflow would have worked. But since JS doesn't use integers, you get something much more fun: https://jsfiddle.net/h7hkL94d/
-
RE: Which language is the least bad?
I would like to unify this forum's opinions and decipher the least bad programming language.
That's easy: HQ9+ -
RE: Benefits website
And you can never get a perfect 0 as gravitational pull is everywhere. Very, very weak, but everywhere.
Assuming you are referring to |Δv| = 0, you're discounting the possibility that there may exist points in space where |Δv| = |Δx0 + Δx1 + ... + Δxn| = 0 where |Δxi| > 0 for all i.Oh, and you're also discounting all points that are unobservable from all (other) gravitational sources due to cosmological expansion.
-
RE: Javascript gotchas thread
I appreciate the irony of posting a WTF about the only thing which makes sense in JS.
Gary Bernhardt already documented a number of things in his 2012 lightning talk titled "Wat", but the video seems to have gone missing. Here's the abridged version:
> [] + [] // Array plus array
"" // Evaluates to empty string> [] + {} // Array plus object
[object Object] // Is object> {} + [] // And likewise, the reverse
0 // Equals zero> {} + {} // Object plus object
NaN // Not a Number, obviouslyI can personally add the following:
> (function () { return this; }).call(null) // Set a property on a null object?
Window { ... } // Whoops, it's a global> var undefined = 12 // Set a variable that happens to be a reserved word?
12 // Error? What error?> {} // Sanity check
undefined // Congratulations, you're insane -
RE: PARADE!
@TDWTF123 said:
Another question-begger. If there are only two doors, then the people who don't switch have a 1/2 chance of winning, same as those who do.
If there are only two possibilities, e.g. win or lose, then there must be a 50% chance of either outcome. Obviously. Duh. Let's play the lottery.
-
RE: Conservapedia: The funniest site in the world
Fine; but don't come back and say "oh my healthcare was free" because regardless of your perception, that's a blatant lie and clouds the issue for everybody. Nothing's free.
So we should spell everything out because you're mentally retarded? Good point. -
RE: Products for Dumb Suckers
I think it's a given that any PC gamer who sees any appeal in a product like this is stupid. Probably an asshole, too.
While you'd have to be stupid to buy DIMMDrive, RAM disks are the cheapest way to record uncompressed video without fucking your framerate.
-
Binary Operator Rant
I woke up this morning to realize that the presedence of the binary operators in C/C++ make no fucking sense. For those of you who don't know, the binary operators have a lower precedence than the equality operators, thus (A == B | C) is equivalent to ((A == B) | C). Who does that?
As with everything shitty in C and C++, it turns out that it is due to backwards compatibility. Once upon a time, C had no boolean operators, and thus you had to use the binary ones instead. Thankfully they eventually realized how stupid this was, and added the boolean ones.
And this could have been the end of the story. With the boolean operators in place, there's no reason to use the binary operators on boolean values ever again. And surely a "modern" object-oriented language like Java would learn from past mistakes? Ofcourse not. They even decided to one-up C by making the binary operators double as boolean operators, while still keeping the dedicated boolean operators. Fortunately they also decided to not let you implicitly cast integers to compensate. Woohoo.
And when I say "like Java", I mean just about every fucking programming language ever. Except Python. This must be why someone thought Lisp would be a good idea.
Bonus mini-rant:
Where the hell is the boolean XOR operator anyway? Do the language developers have an irrational fear of furry emoticons? Or did they just implement AND and OR, then though fuck it let's go drink ourselves to death? -
RE: Stupid Black Stupid Friday Stupid
There aren't enough bears in this country to make it worthwhile.
In England it's all about the arms of aristocrats anyway.
Latest posts made by Faxmachinen
-
RE: The HORROR of uncoordinated movement!
Oh. @mott555 (?) posted something about that earlier. Eh..it's easy enough. Here:
That's a great example statistics abuse, although I'd attribute it to stupidity rather than malice. Note how one axis is per capita and the other isn't. At 223% population increase, the number of deaths and number of guns would be directly proportional. The actual population increase is closer to 20% though. -
RE: WTF? The correct answer isn't even listed.
The Christian Science Monitor has nothing to do with Christianity. Maybe spend 59 nanoseconds educating yourself before embarrassing yourself by spewing ignorance?
That's like making the best chocolate spread in the world and naming it "Dog Poo". Or maybe "Christan Science Poo".
But then again you have "In God we trust" stamped on your Mammon trinkets, so you have a great precedent for adding religion where it doesn't belong.
-
RE: Spot the bug: javascript queue
If the queue is used often enough, you'll get integer overflow.
Ironically enough, a silent integer overflow would have worked. But since JS doesn't use integers, you get something much more fun: https://jsfiddle.net/h7hkL94d/
-
RE: C stringsþÝ«ÌΉŠ‹ÿ
That's not a list.
To be pedantic, the Perl documentation refers to "list" as the syntax, and "array" as the data type. The list syntax does not implicitly create an array, which is why you can't get it's length.
-
RE: Products for Dumb Suckers
I think it's a given that any PC gamer who sees any appeal in a product like this is stupid. Probably an asshole, too.
While you'd have to be stupid to buy DIMMDrive, RAM disks are the cheapest way to record uncompressed video without fucking your framerate.
-
RE: Stupid Black Stupid Friday Stupid
There aren't enough bears in this country to make it worthwhile.
In England it's all about the arms of aristocrats anyway. -
RE: Javascript gotchas thread
undefined is not a reserved keyword. It is a property of the global object that is initially unassigned and thus is of type 'undefined'. Like most properties its value is assignable by user code and it can be shadowed by variables of the same name.
You're mistaken, it cannot be shadowed in modern browsers:> undefined = 12 12 > undefined undefined > var undefined = 12 undefined > undefined undefined
The real WTF here is not JavaScript. The real WTF is people not learning about the language's rules and taking their initial interpretation as canon.
You could say the same thing about Intercal. -
RE: Conservapedia: The funniest site in the world
Fine; but don't come back and say "oh my healthcare was free" because regardless of your perception, that's a blatant lie and clouds the issue for everybody. Nothing's free.
So we should spell everything out because you're mentally retarded? Good point. -
RE: Which language is the least bad?
I would like to unify this forum's opinions and decipher the least bad programming language.
That's easy: HQ9+ -
RE: Javascript gotchas thread
I wasn't trying to do stupid shit. For some reason, I just didn't expect && to act that way, even though I'm using || to select fallbacks all the time.
Okay, here's one that actually got me:
How does JavaScript interpret the expression a << b == c & d?- (a << b) == (c & d)
- a << (b == (c & d))
- ((a << b) == c) & d
Hint: JavaScript got its operator precedence from C. And C didn't always have the && and || operators.