That's fine. You're missing some punctuation, though.
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.