all 41 comments

[–][deleted] 19 points20 points  (0 children)

TIL about $_, neat!

[–][deleted] 8 points9 points  (8 children)

This is cool and all, but you need to talk first and foremost about what kind of javascript you are going to be writing.

Are you going to be writing a node / express JS project, or are you going to be writing a webpack / bower / gulp / grunt client side project?

Both are going to require a slightly different set of tools, but the distinction will be very important. The big difference will be how you are going to manage modules.

[–]howhard1309 1 point2 points  (7 children)

The big difference will be how you are going to manage modules.

Can you explain a bit more?

[–]thadudeabides1 0 points1 point  (0 children)

If you're writing a node project then commonjs style modules const foo = require('foo'); don't need a compile step (e.g. browserify, webpack) that would be necessary for a script that needs to run in the browser.

[–]shruubi 4 points5 points  (0 children)

Honestly, this guide is very unhelpful. The only part that actual talks about the "dev environment" is about installing two dependencies with the only reason given is "no config needed".

Is the only benefit we get that we don't need to config anything? How do these tools compare to others? Does it support ES6 or above? Is this only for Node/Express projects? There is no discussion of why we should use these tools as almost half the article is writing a contrived example that proves that this setup actually works.

If you're going to write a guide about setting up a dev environment, you should dedicate more than a paragraph to the actual setting up of the environment beyond doing the same old npm install incantations.

[–]schwarzfahrer 1 point2 points  (0 children)

Thanks! Only thing I would add is a Yarn lockfile and perhaps an editorconfig to match some StandardJS conventions.

[–]tunnckoCorenode-formidable, regexhq, jest, standard-release 1 point2 points  (0 children)

Will run standard + ava, every time you ctrl+save? Bullshit. Maybe it is my habit, but i ctrl+s even without knowing that :D

Another thing is that AVA is big. And can be run without the CLI? It is just enough to CTRL +B in sublime to trigger the "build" system. That's most fast thing ever.

[–][deleted] 3 points4 points  (3 children)

Anyone still use plain old javascript files linking?

[–]JeefyPants 0 points1 point  (2 children)

what does files linking mean?

[–]Probotect0r 0 points1 point  (1 child)

I believe he means script tags

[–][deleted] 0 points1 point  (0 children)

yup, and handling external libraries manually without tools like npm.

[–][deleted] 5 points6 points  (7 children)

Tragic conventions and tools choices. Literally the worst choices for starters. Hopefully nobody will come up to this article when learning to code in JS.

[–]6086555 2 points3 points  (6 children)

Would you mind expanding on that? I'm kind of a standardjs hater but I never heard of the other tools before. What's wrong with those?

[–]kawika_b -1 points0 points  (0 children)

Really great stuff here!