[thelist] Proper commenting and code maintainance [was: Why does this JS code work the way it does???]

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Tue Dec 12 23:22:32 CST 2006


Sorry, I forgot to quote the original post

"
Matt Warden wrote:
>    if ( ...some booleans statement... ) {
>        return false;
>    }
>    else {
>        return true;
>    }

This is a big frustration for many many many many many many programmers.
"

On 12/13/06, VOLKAN ÖZÇELİK <volkan.ozcelik at gmail.com> wrote:
>
>
> Then let us create a hybrid of both views:
>
> // if there keyCode is not one of the numbers in validkeys
> // do not allow the keystroke
> // otherwise allow it:
> return (strValidKeys.indexOf(String.fromCharCode (event.keyCode)) == -1);
>
> And then compress your source with somehting like packer [1], js
> crunchinator [2] or EasyPack [3]
>
>
> [1] http:// dean.edwards.name/packer*/*
> [2] http://www.brainjar.com/js/crunch/
> [3] http:// www.codeproject.com/useritems/EasyPack.asp
> (latest source code and binaries on http://www.sarmal.com/sardalya/Samples.aspx
> )
>
> <http://www.sarmal.com/sardalya/>
Cheers,
Volkan.


More information about the thelist mailing list