From: Guangyi Wu <gua...@al...> - 2000-11-27 09:44:37
|
As a new comer, I feel it could have helped much to start, if there were comments in the scripts. I have to debug in both IE and NS to understand what is going on. On one side, comments waste bandwidth for production. On the other side, uncommented script files make development more and more difficult, as the DynAPI evolves. Further more, rare developers and testers can really try the code on all versions of browsers and platforms, it might be better to document the specific decisions with code, while others may not dig so much into it. DynAPI is much more elegant, and complicated as well, than normal JavaScripts, because OOP is heavily applied and many workarounds for different browsers/platforms are included. Comments will help both in development and bug fixes. There are several ways to strip comments from source code. It is easy to select a JS compression tool as standard. Or, we can write our own script/program to filter out comments of all files recursively under a directory. If it is desired, I can contribute it in Perl/Java/C. Just come into this idea, after I read the discussion about the semicolons. Cheers George |