On 07/16/2015 01:16 AM, Thomas Zimmermann wrote:
Hi

Am 16.07.2015 um 00:47 schrieb Jeff Gilbert:
On Tue, Jul 14, 2015 at 7:55 AM, Thomas Zimmermann
<tzimmerm...@mozilla.com <mailto:tzimmerm...@mozilla.com>> wrote:

     The discussion has a number of good points in favor of using 'a',
     but I
     missed convincing arguments in favor of not using 'a'. Are there
     any? I
     don't consider "I don't get what 'a' is good for" a convincing
     argument.


On the other hand, I'm still unconvinced by the pro-'a' arguments I've
read here. Besides roc's point about refactoring, the argument against
aFoo is mainly about whether the information added is worth the noise.
Adding information is not always worth it, since useless information
is noise.

One man's noise is another man's information. ;) Your arguments here and
below are of the "I don't need it so it's useless" type.

The core question is: How does removing this prefix help us in producing
better code? To me, 'producing' includes 'writing' and
'reviewing/reading'. Using 'a' seems helpful to at least some reviewers.
If we remove the prefix, does this improve the writing part
significantly enough to make it worthwhile? My answer is "No".

Best regards
Thomas



To a user that doesn't know any coding, it appears to me that all of these style guides are wrong, and you need to start a campaign to change their thinking.

Notable works or style guides [2] which do not recommend `aFoo`: [3]
* Google
* Linux Kernel
* Bjarne Stroustrup
* GCC
* LLVM
* Java Style (Java, non-C)
* PEP 0008 (Python, non-C)
* FreeBSD
* Unreal Engine
* Unity3D (largely C#)
* Spidermonkey
* Daala
* RR
* Rust
* Folly (from Facebook)
* C++ STL entrypoints
* IDL for web specs on W3C and WhatWG
* etc.

I don't know what a style guide is, but if it is just a guide then remove aFoo, and those that use it go on using it.

Those coming from coding one of the above won't have to go WTH, when they see the Mozilla style guide.

Cheers!
--
Kubuntu 14.10 | KDE 4.14.1 | Thunderbird 42.0a1(Daily) Go Bucs!
[Coexist · Understanding Across Divides](https://www.coexist.org/)
[Visit Pittsburgh](http://www.visitpittsburgh.com)
[Pittsburgh Vintage Grand Prix -](http://www.pvgp.org/) July 10-19,2015
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to