Skip to content

Comment on Google Closure: How not to write JavaScriptparent

Comments

A rounding error that causes a fast-paced Javascript game to crawl to a laggy stutter when repeated all over the place.

Regardless, the Closure Compiler (that the Closure Library is made to be used for) fixes this common case.

Another example where it's more than a rounding error: http://stackoverflow.com/questions/2573212/why-is-setting-ht...

That stackoverflow article points to http://www.onaluf.org/en/entry/13

which explains the issue is a lot more complicated then just a property lookup.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.