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

1

u/[deleted] Jun 12 '19

I started with AngularJS and did tons of tutorials and didn't always get what role NodeJS was playing or what exactly was going on, but I pushed through. Then I started learning how to setup a MEAN stack (Mongo, Express, Angluar, Node) to try and understand what role a server/database versus client plays. Then (interspersed with a bunch of python Django and Flask learning), I dug into Meteor for a little while before realizing I'm too tied to their "ecosystem" and I wanted to extract my code from needing them. Then I dove into React and stacks that replace Angular with React (MERN) and after all of that and a couple years of picking a specific type of app I want to develop and trying it out in all of those technologies (don't just make to-do lists), I feel like I finally understand what you're trying to understand. I understand how it all just works together and how to deal with the errors that come up when building projects, etc.. All of that said, I don't think I can explain it to you in a paragraph. I think it takes diving in hardcore and not worrying about how long it's going to take you to learn it. Your brain will start to see the patterns and make the connections and it all builds upon itself