It's the internal standard at Google, but almost everywhere else (I
know of) uses 4 spaces. JSLint doesn't care. I "grew up" on the Adobe
Flex coding conventions and I like 4 spaces from a readability point
of view. I also like an 80-ish character line length, for the same
reason. I like JSLint as it is very strict on how you write JS and
that strictness (which is not part of the language) helps prevent
errors and makes it easier to work together on one codebase.

EdB



On Fri, May 3, 2013 at 6:10 PM, Alex Harui <[email protected]> wrote:
> Is it a "standard" to use 2?  If you want to use 2 I'll learn to live with
> it.  I can probably set up one editor for js editing.
>
>
> On 5/3/13 8:37 AM, "Erik de Bruin" <[email protected]> wrote:
>
>> Ok, how about this: I'll replace all tabs and '4 spaces' with 2 spaces
>> to satisfy the Closure Linter, run JSLint and just before comitting,
>> I'll replace all '2 spaces' with 4 spaces (my favourite also) and not
>> fix the 80 char limit after that change. That way we have a consistent
>> base we all can work with (2 spaces is not enough ;-)). I'll try to
>> come up with a tool or script that automates this process so we can
>> run it every once in a blue moon.
>>
>> EdB
>>
>>
>>
>> On Fri, May 3, 2013 at 4:57 PM, Alex Harui <[email protected]> wrote:
>>> Ok, I'm all checked in.
>>>
>>>
>>> On 5/3/13 7:50 AM, "Erik de Bruin" <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> I will merge the 'goog.events' branch with 'develop' my tonight, so if
>>>> everyone can check in their last minute commits to the JS part of
>>>> FlexJS before 7 PM CEST (GMT +1; that's 10 AM for the lucky "few" who
>>>> live on the US east coast) that would make your lives much easier.
>>>>
>>>> Any changes not checked in might run into "some" collisions with the
>>>> code from the 'goog.events' branch as much of the old code is
>>>> refactored in it.
>>>>
>>>> Thanks,
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>
>>> --
>>> Alex Harui
>>> Flex SDK Team
>>> Adobe Systems, Inc.
>>> http://blogs.adobe.com/aharui
>>>
>>
>>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to