Re:The HTML5 Experiments of Hakim El Hattab
by fedesilva on Monday August 23, 2010 @03:03AM
(#1626082)
While I do not care for obfuscation for its IP protection function, having the source visible and accessible is a problem for games: how can we know that top scores are valid and a variable has not been modified? Basically, all JS games are cheatable. John Resig talked about this http://bit.ly/bO3bcf
The reverse is also true. For every obfuscation tool there will be an unobfuscation tool. They may not give back 100% of the original source but they can go close.
There are SWF decompilers too.
http://www.google.ca/search?q=swf+decompiler
If HTML5 authoring tools start appearing we'll have to make sure they use open formats and runtimes.
While technically all JS is open-source / source-visible, just wait: where there's a market, there will be more and more sophisticated obfuscation techniques. Especially for a language like JS, where it can easily generate and modify its own code.