3 ms·
The history of JS style standards is a lesson in ignoring prior work: - In the beginning was the jQuery style guidelines, which started for jQuery but were eve
by nailer 7y ago
The history of JS style standards is a lesson in ignoring prior work:
- In the beginning was the jQuery style guidelines, which started for jQuery but were eventually for general JS https://contribute.jquery.org/style-guide/js/ https://contribute.jquery.org/style-guide/js/
- Then there was idiomatic.js, from a massive bunch of JS community leaders https://github.com/rwaldron/idiomatic.js/ https://github.com/rwaldron/idiomatic.js/, evolving some of the principles of jQuery style guidelines.
- Then AirBnB made their own style guides because they didn't realise the jQuery guidelines or Idiomatic existed
- Feross and some other people made 'Standard' JS, ignoring the previous 3 standards, and said it's standard because, well: https://github.com/standard/standard#but-this-isnt-a-real-web-standard https://github.com/standard/standard#but-this-isnt-a-real-we... (see 'tape' and how it's 'the only test framework which supports TAP' because the tape author invented TAP). https://standardjs.com/ https://standardjs.com/
- Currently most JS devs who have been around a while use Prettier instead of eslint because it formats the code rather than just complaining (recent versions of Standard apparently do this too, but that came later) https://prettier.io/ https://prettier.io/
Feross himself is awesome. The name 'standardJS' was a poor choice.
- minitech 7y ago> see 'tape' and how it's 'the only test framework which supports TAP' because the tape author invented TAP What? The tape package on npm? As far as I know, that was made by substack (James Halliday), whereas TAP dates back to 1987 with Perl (https://en.wikipedia.org/wiki/Test_Anything_Protocol https://en.wikipedia.org/wiki/Test_Anything_Protocol says “the Test::Harness module was written by Tim Bunce and Andreas König”).
- nailer 7y agoI saw TAP presented for the first time along with tape and evidently got confused. You're right. I stand corrected.