Samuel
@samuel.fm
being a JS dev is like every day discovering that the Boolean type is actually a megabool
enum megabool {
TRUE, FALSE, NEITHER, BOTH, MAYBE, TRUEISH, FALSEISH, IT_DEPENDS, OSCILLATING, ITS_COMPLICATED, 26 94 666
chip 🔒
if you just keep appending =s to your comparisons it'll all work out, at least that's what I hear truthiness ================= reality
1 30
colin meows
Its useful to know that if you compare 2 doubles and one of them is a NAN then the result is always false no matter what. therefore if(x==double.Nan) is always false!!!!!!! you need to use if(double.IsNan(x)) AT least in C#
CGlacia
As a web developer who mostly works in the backend, I have a love/hate relationship with JS.
SmilerRyan
(i know this isn't meant to be serious) but that's what an int lets you do, 1.0/0.0/0.5/0.5/0.6/0.7/0.4/0.5/0.5/0.5 but yeah i agree