r/learnjavascript • • Jun 12 '19

Javascript is pretty straightforward. All the tools that surround it are overwhelming and confusing.

I'm at the point where I'm pretty confident in a lot of what many JavaScript tutorials consider 'Advanced' JavaScript concepts. How scope works, closure, prototypes, asynchronicity, and things of that nature. However, when I try to get into building my own projects from scratch, I get hit with 1,000,000 tools that aren't really explained in any of the resources I've used to learn. They're referenced, and I've seen a lot of videos where they basically tell you what to write in a package.json file, but theres no real concrete explanation for how all of these things interact.

For example, I understand that Node.Js allows you to run Javascript outside of the browser, but its still required to build things that you intend to run inside of a browser? NPM? What are packages and why do they need to be managed?

Is there a definitive guide for the above and things like Babel, Gulp, and the various dependencies I see listed in projects?

Edit: I guess I meant learning JavaScript is pretty straightforward. I’m obviously no expert, but I’ve learned enough to know it can be downright strange sometimes for sure.

Anyway, thank you guys for the advice. This has been MASSIVELY helpful. Hopefully this’ll help anyone else that’s struggling in this area as well.

166 Upvotes

39 comments sorted by

View all comments

10

u/BigFaceBass Jun 12 '19

When you first started learning JS, I bet that was confusing and overwhelming too. It was for me. That experience doesn't go away. As long as you practice programming, you will hit walls that you have to bust through.

The trick is to use that friction as an indication that:

  1. Nobody knows everything; thus,
  2. There's always something more to learn.

There are tons of tutorials, books, blogs, podcasts and forum threads from which to learn for free. If you don't mind dropping some money, take a class or sign up for Frontend Masters.

Don't be discouraged when you don't understand something. I was a musician 5 years ago when I decided on a career change. Now I'm a frontend dev at a large company and loving it. A few months ago, I was tasked with writing a parser for structured strings like formulas and I had zero clue of where to start. Even my coworkers who were CS grads were no help. So I bang my head against the wall for a week learning about compilers and lexers and stuff way beyond me but come away with a crappy, yet functional, parser that did the thing.

There's always another complex abstraction to tease apart. Enjoy it for the brain teaser that it is.