3 ms·
"Standard" for whom? This is just some guy enshrining his preferences.
by emodendroket 11y ago
"Standard" for whom? This is just some guy enshrining his preferences.
- petetnt 11y agoThis is addressed in the README But this isn't a real web standard! Of course it's not! The style laid out here is not affiliated with any official web standards groups, which is why this repo is called feross/standard and not ECMA/standard. The word "standard" has more meanings than just "web standard" :-) For example: This module helps hold our code to a high standard of quality. This module ensures that new contributors follow some basic style standards.
- emodendroket 11y agoI don't claim a project has to be an "official" Web standard to be a standard, but I'm seeing a hard time how this one is a standard in any meaningful sense.
- Touche 11y agoYes, basically. I actually like the premise: > No decisions to make. That can be good, certainly Go developers benefit from the lack of bikeshedding over style. But the authors of standard didn't take this advise; they did make decisions, the ones that they prefer. If they would have just grepped through NPM to figure out the most popular style choices I would have respected the idea a bit more.
- feross 11y ago> If they would have just grepped through NPM to figure out the most popular style choices This amused me, as the npm team themselves use `standard`. https://github.com/npm/npm/blob/master/package.json#L199 https://github.com/npm/npm/blob/master/package.json#L199
- Touche 11y agoGrep through the npm ecosystem, as that serves as a large sample size of what are the standard style choices. I know that npm and it's largely unreadable codebase uses your style.
- artursapek 11y agoThe reason Go is known for this is the gofmt tool. Until there's a good equivalent for JS, thousands of man-hours will continue to be wasted on style-related nonsense like this.
- whatever_dude 11y agoThis. Calling this "JS standard!" bothers me to no end. I suppose I have to create my own style and call it "standard" too.
- _asummers 11y agohttps://xkcd.com/927/ https://xkcd.com/927/
- emodendroket 11y agoMaybe we can also standardize this exact post since there have already been like five of them.
- fs111 11y agohttp://xkcd.com/927/ http://xkcd.com/927/
- andybak 11y agoThe benefits of a common standard language style massively outweigh the cost to you of compromising over your personal preferences. signed, The entire Python community (well, most of us...)
- dang 11y agoOk, we added "proposed". If someone suggests a better title we can change it again. If more prefixes are required I suggest "one" and "possible".
- onestone 11y agoIt's not "proposed" in any relevant standards body, which is why this is also misleading.