Re: Open Source / Collaboration
Dr John Stockton wrote:
<snip>[color=blue]
> While it is entirely appropriate for delivered code that is intended
> to be read only by browsers to be not indented, code intended to be
> read or edited by humans should be indented to show its intended
> logical structure - preferably by two or three spaces per level, and
> not by a tab. If that is not in the FAQ or the FAQ notes, then it
> should be.[/color]
The notes state that *posted* code should be indented with spaces rather
than tabs, and explain the practical reasons for doing so. I don't think
I would recommend the same restriction for all code. Different people
seem to favour different depths of indentation. If they indent with tabs
and set their text editors up so that tabs are the indent they prefer
others can do likewise, and all can work on the same code in the comfort
of their own preferred indentation depths.
[color=blue]
> The code uses getElementById. ...[/color]
<snip>[color=blue]
> provide code to emulate, if necessary, that function. Such code may
> be in the FAQ notes; it is in my js-other.htm (taken from a post by
> Randy).[/color]
<snip>
It is. It is on the alternative DynWrite page (as getElementById is used
there).
Richard.
Dr John Stockton wrote:
<snip>[color=blue]
> While it is entirely appropriate for delivered code that is intended
> to be read only by browsers to be not indented, code intended to be
> read or edited by humans should be indented to show its intended
> logical structure - preferably by two or three spaces per level, and
> not by a tab. If that is not in the FAQ or the FAQ notes, then it
> should be.[/color]
The notes state that *posted* code should be indented with spaces rather
than tabs, and explain the practical reasons for doing so. I don't think
I would recommend the same restriction for all code. Different people
seem to favour different depths of indentation. If they indent with tabs
and set their text editors up so that tabs are the indent they prefer
others can do likewise, and all can work on the same code in the comfort
of their own preferred indentation depths.
[color=blue]
> The code uses getElementById. ...[/color]
<snip>[color=blue]
> provide code to emulate, if necessary, that function. Such code may
> be in the FAQ notes; it is in my js-other.htm (taken from a post by
> Randy).[/color]
<snip>
It is. It is on the alternative DynWrite page (as getElementById is used
there).
Richard.
Comment