Archives for June 2011

June 2011 (2)
SMTWTFS
« May Jul »
1234
567891011
12131415161718
19202122232425
2627282930

Like this Archive Calendar widget? Download it here.


JavaScript: an acceptable use of double-equals? Just.

When I first started learning and writing JavaScript, the recommendation I came across again and again was that the equality operator, ==, or “double-equals” was the devil incarnate. You should always use the identity operator, ===, or “triple-equals” because then you won’t have to battle weird type coercion bugs (and remember it’s not necessarily the time you write the original code that you’ll get tripped up, it’s the time you maintain it for the nth time). […]

READ MORE

JavaScript: fast floor of numeric values using the tilde operator

OK, put this one in the completely weird bucket. It works, but damn it’s obscure. […]

READ MORE