r/javascript • • Sep 12 '16

JavaScript Standard Style Guide

https://github.com/feross/standard
0 Upvotes

29 comments sorted by

View all comments

Show parent comments

1

u/ghostfacedcoder Sep 13 '16

Well, the idea was to make a "standard" that wasn't up for modification by the person using it.

Words in English (well, in any language) have meanings. Standard doesn't mean "something that's not up for modification made up by one person." It means (according to Miriam-Webster at least) "something established by authority, custom, or general consent as a model or example".

The author was not an authority, and there was no established custom or general consent to use his personal style. So it's simple: he deliberately mis-used English get popularity for his project.

0

u/Klathmon Sep 13 '16 edited Sep 13 '16

Kind of funny that you took the time to look up the definition of the word 'standard' on merriam-webster and just so happened to look over the first 2 definitions. I'll put them here:

  • a level of quality, achievement, etc., that is considered acceptable or desirable

  • something that is very good and that is used to make judgments about the quality of other things

By those definitions, "Standard JS" is definitely a standard. It brings a level of quality to the code that makes it desirable.

But even if we decide to use your definition (which was weirdly 4th in the list...), I'd argue that "Standard" fits because the person installing it is acting as the authority. The "user" is standardizing on standard. Just because it's not your standard doesn't mean it's not a standard.

Either way, i'd prefer to go with the 3rd definition:

  • a conspicuous object (as a banner) formerly carried at the top of a pole and used to mark a rallying point especially in battle or to serve as an emblem

It's a flag!

0

u/ghostfacedcoder Sep 27 '16 edited Sep 27 '16

Words also have different meanings in different contexts. Normal human beings understands this, but if you try to argue like a robot and blindly follow the highest dictionary definition ... well you're going to have a much success communicating with other human beings as a robot does (a modern robot; I'm not talking sci-fi).

If you're playing baseball it doesn't matter if "you're out" normally means "leave", even if that's the #1 dictionary definition, because in the context of baseball "you're out" just means you go back to the club house and your team has one less "out" left in the inning.

Same thing with standard: there's the clear, obvious definition of the word in a programming (or indeed any technical) context, and there's a bunch other definitions. You can use those other definitions if you want, or make up your own definition for the word, but if you don't use the proper definition for a word given the context it's used in, you're not speaking English.

1

u/Klathmon Sep 27 '16

Hey dude whatever you say, I'm not a linguist.

But by that line of thinking, gulp, grunt, broccoli, node, react, angular, backbone, ember, and most other names are just as bad...

I'll just keep referring to standard js as the fancy banner that denotes that style, and you can continue on your crusade against names.