Xah Web Dev Blog Archive 2015-10
Encode URL, Escape String (updated)
Global Internet Usage Hour Pattern. Guess when is internet most busy in usa, and when in china. local time.
JavaScript wuwu quiz
// quiz. figure out what does this code do // 2015-10-29 function foo() { var eleName = document.getElementById("x79177"); alert( (function(le) { return function(f) { return f(f); } (function(f) { return le( function(x) { return (f(f))(x); } ); }); }) (function (givenGetDepth) { return function (element) { return (element === null) ? 0 : givenGetDepth(element.parentNode) + 1; }; }) (document.getElementById(eleName)) ); }; foo();
Property Key "prototype" (new page)
undefined (new page)
null (new page.)
On a different note, James Clark (programmer), the top expert of XML, his last blog entry is 5 years ago http://blog.jclark.com/
XML and XHTML is a sad story. Excellent tech, but blown up by enterprise. Now we have the HTML5 soup, back to the roots of random soup.
another gray on white. This one from the inventor of erlang language. Web Design: Grey Text on White Background. Solarize Color Disease
Buy JavaScript in Depth. New version is out.
This is early stage of selling my tutorial. If you enjoyed it, please help me spread the word. Leave a comment at JavaScript in Depth. Thanks.
major re-organization of the js+dom table of contents page. JS: DOM Scripting Tutorial
v8 comilation quirk: char count
these 2 JavaScript code, one is twice as slow, because its comment has a few 4 more chars.
[#NodeJS : A quick optimization advice By Jefferson Rafael K. At https://medium.com/@c2c/nodejs-a-quick-optimization-advice-7353b820c92e , accessed on 2015-10-09 ]
upgrade to latest node.js (v4.x), then you'll have latest es6 support as Google Chrome browser.
write once, run anywhere. —JavaScript