THANX PPL, thats actually very true! I will make it much difficult 4
myself nxt time if I compact and try to hide it! And by the way, why hide
it and then copy others' in this newsgroup? Sounds a bit unfair! Thanks
ppl for yur advice! *Leon thinks N snaps fingers* "NO MORE HIDING N
COMPACTING, JUST NICE N CLEAR, PROFFESIONAL SCRIPT"* ;-)
// Cheers...Leon ;
> Hi Leon,
> In most if not all programming languages, layout (i.e. spacing,
> indenting, etc) is optional, and yes, to a certain extent, you will make
it
> harder for other people to understand, but if you haven't looked at the
> code for a while, you are only making it more difficult on yourself! I'm
> always slightly bemused by people trying to protect their javascript or
> HTML code by various means, because in the end, it can always be
obtained!
> Stick to trying to make your code as neat and concise as possible, and
even
> comment it a little (shock horror ;P). That way, you'll understand it
> months later, and anyone who may 'borrow' your code will at least learn
> something.
>
> Cheers,
>
> Ben
>
> At 10:59 16/05/01 +0000, you wrote:
> >I am a very amature javascript programmer and I was thinking if there
> >would be any problems if i type in my code without spaces at the end of
> >codes, between operators etc. I like to put my HTML very compact so that
> >it basically makes it a bit tiring for people to copy it well! In the
> >book "Begining Javascript" there are codes like "var degFahren = 9 / 5 *
> >degCent + 32 ;" is there any problem with typing it without spaces
between
> >the operators eg btn 9 and /? or after the ";" could i just continue
with
> >the next script block? I hope you understand what i mean!
> >cheers..Leon