Mar. 15th, 2013

garote: (machine)
Many things change in life. Much has changed in my own life recently. But one very important thing, thankfully, stays constant and dependable:



Comedy Wolf's revolting sense of humor!



She soldiers on through the deepest of dungeons and the craggiest of mountain passes, and always comes up with a grin and a pithy remark.



... Even though there isn't exactly a lot of loot to collect that's suitable for a wolf.



I, on the other hand, find neat things all the time. Like this semi-corporeal sword that passes through armor.



garote: (machine)
''        ==   '0'           // false
0         ==   ''            // true
0         ==   '0'           // true
!0        ==   true          // true
!1        ==   false         // true
false     ==   'false'       // false
false     ==   '0'           // true
false     ==   undefined     // false
false     ==   null          // false
null      ==   undefined     // true
" \t\r\n" ==   0             // true
NaN       ===  NaN           // false
!!NaN     ===  !!NaN         // true
I recently saw someone prefacing their code with
var t=!0;
... Because they wanted to save space in their code by replacing every occurrence of true with t, and also wanted so save two bytes while declaring what t was.

And I thought Perl invited abuse!

If you see anyone doing this, pour your drink on their head.

Profile

garote: (Default)
garote

June 2025

S M T W T F S
1234567
891011 121314
15161718192021
2223 2425262728
2930     

Most Popular Tags

Page generated Jun. 26th, 2025 05:47 am