Just a reminder that JavaScript was developed in 10 days, the same amount of time i spend fixing bugs when i just miss a ","
51 0 ReplyThe world was made in 7 days, so it should have been 3 days left to develop js
19 0 ReplyThis sounds more credible than the big bang theory. I no longer believe in science
9 0 Reply
The tech equivalent of inventing leaded gasoline.
46 1 ReplyThis is one of the most educational and entertaining reads on the internet, if you are into that kind of thing:
41 1 ReplyHas anyone actually read through that? Reading the first few examples and it's just not understanding how languages work half of the time:
!!"false" == !!"true"; // -> true !!"false" === !!"true"; // -> true
Wow, no shit, non-empty string coerces to true, who would've guessed! Did you know that
!!"bullshit" === !!"true"
as well? Mind=blown.NaN === NaN; // -> false
Again, no shit, that's in the NaN specification and the page even mentions it, so why even include it?
38 6 ReplyWhich is why I'm of the opinion that dynamically typed languages are evil. !!"false" should either be caught at compile time or raise an exception.
I'm thoroughly convinced that the only use of dynamically typed languages is to introduce bugs
23 0 ReplyNaN===NaN
is the fault of the floating point standard tho i believe.5 0 ReplyAlso, a huge proportion of the list is just not understanding IEEE floats behaviour and blaming the language for it. Exactly like this post is doing. All those weird number things js does is because it only uses floats for everything and every language that uses floats will behave the exact same way.
1 0 Reply
So, uh, first example, the developer decided instead of comparing based on type, he rather converts the values? Why?!
1 0 Reply
You just have to look at the problem from a different angle.
24 0 ReplyAh. The shork did the math. This explains a lot.
31 7 ReplyNot enough alcohol involved.
9 0 ReplyWhat is this image from?
8 0 ReplyThis image is fan art of Gawr Gura from Hololive EN's 1st Gen VTuber group HoloMyth.
She is their most subscribed talent and is known for being computationally challenged.
17 1 ReplyThanks!
1 0 Reply
Approach the problem from different angle!
1 0 Reply