News for hackers. Stuff that matters.

broquaint

Re:A History of Punctuation on Wednesday September 09, 2020 @08:02AM (#24420064)
Might I also recommend Keith Houston's wonderful book "Shady Characters: The Secret Life of Punc­tu­ation, Sym­bols, & Other Ty­po­graph­ical Marks":

https://shadycharacters.co.uk/books/shady-characters-the-boo...

He also posts, with some regularity, to his blog on the same topic:

https://shadycharacters.co.uk/

Employing the correct usage of hyphens, en dashes and em dashes continues to be a small daily joy for me.

Re:Perl 5.17.6 is now available on Monday December 03, 2012 @01:09PM (#4866806)
Re:JavaScript Interview Question on Thursday January 20, 2011 @12:55PM (#2124521)
The behaviour is due to the fact that variables in JavaScript are scoped to the function, although as that code is in the global scope and lacks a var declaration it will live under the global object (window in this case). So in that example each closure captures the same variable hence 4 being produced within each alert(). For more info see: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/C...