On Tue, Jan 7, 2014 at 1:46 PM, Jeff Walden <jwalden+...@mit.edu> wrote:

> JS widely uses 99ch line lengths (allows a line-wrap character in 100ch
> terminals).  Given C++ symbol names, especially with templates, get pretty
> long, it's a huge loss to revert to 80ch because of how much has to wrap.
>  Is there a reason Mozilla couldn't increase to 99 or 100?  Viewability
> on-screen seems pretty weak in this era of generally large screens.
>  Printability's a better argument, but it's unclear to me files are printed
> often enough for this to matter.  I do it one or two times a year, myself,
> these days.
>

I'm sympathetic and I don't recall any arguments against doing this.

I don't think most JS hackers care for abuse of Hungarian notation for
> scope-based (or const) naming.  Every member/argument having a capital
> letter in it surely makes typing slower.  And extra noise in every name but
> locals seems worse for new-contributor readability.  Personally this
> doesn't bother me much (although "aCx" will always be painful compared to
> "cx" as two no-cap letters, I'm sure), but others are much more bothered.
>

I personally hate this style rule. I've argued against it vociferously. I
lost. In the absence of a new killer argument against it, I'm resigned to
living with it. If I can, you can too :-).

JS people have long worked without bracing single-liners.  With any style
> guide's indentation requirements, they're a visually redundant waste of
> space.  Any style checker that checks both indentation and bracing (of
> course we'll have one, right?), will warn twice for the error single-line
> bracing prevents.  I think most of us would discount the value of being
> able to add more to a single-line block without changing the condition
> line.  So I'm pretty sure we're all dim on this one.
>

I actually prefer the bracing rule here. Ignoring that, it seems to me the
downside of consistently bracing is small since I bet you often insert a
blank line after the statement anyway.

Thanks for bringing these up.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to