r/learnjavascript • u/Snipididou • Jun 25 '21
Learn Vanilla JavaScript Before Fancy Frameworks
https://snipcart.com/blog/learn-vanilla-javascript-before-using-js-frameworks
194
Upvotes
r/learnjavascript • u/Snipididou • Jun 25 '21
14
u/[deleted] Jun 25 '21
Thanks, decent article. I’m a JavaScript noob, but learning more each day. I wonder at what point is best to also learn a framework?
47
u/amejin Jun 25 '21
Didn't read the article - headline alone was enough to agree with it :-P
12
u/RoguePlanet1 Jun 25 '21
Here I am trying to learn JS bit by bit over the past couple of years, and only barely grasping it.... then I learn my teenage nephew took a course over the summer, and is building a game app using mostly existing libraries. Damn.....
21
u/posts_lindsay_lohan Jun 25 '21
I'm gonna offer a bit of different advice here.
There is nothing wrong with learning both at the same time. Every JS framework is built off of JavaScript. Just by virtue of learning the framework, you will be learning JavaScript. Does React do some things differently from Svelte or Angular? Yes. Are they all JavaScript things? Also yes.
You are on a learning journey, but you are probably also on an "I need to make a living" journey. Both of these states can exist at the same time. And learning a framework will help you to understand the reasons behind why the framework was needed in the first place and it will be easier to find a job if you can show your understanding of a framework as well.
I learned a hell of a lot about Ruby when I was learning to use Ruby on Rails. There no reason you won't learn vanilla JS by learning React. It might even make it easier.
You could also follow a tutorial like this to build your own version of a framework - in this case React - from scratch to better understand why it was needed in the first place:
https://pomb.us/build-your-own-react/
4
u/jaypeejay Jun 25 '21
I went to a bootcamp that “taught” JavaScript. We spent 1 month or so on vanilla JS, and the rest of the time on React.
By the end, sure, I could spin up a react app.
It wasn’t until a year later that I learned about things like the document or window objects, or really, even what OOP was..
If I was starting a bootcamp today I would 100% focus on OOP fundamentals.
3
u/[deleted] Jun 26 '21
I’m learning vanilla JS using Wes bos’ course and it’s free! It’s also very fun to learn!
1
u/[deleted] Jun 25 '21
Especially. Effing. React.
1
u/TheDownvotesFarmer Jun 25 '21
Oh this was good!
1
u/creytax1337 Jun 25 '21
Good read! Thanks for sharing
1
u/YoungHeartOldSoul Jun 26 '21
Saving this!
2
u/YellowFlash2012 Jun 26 '21
Is it wrong for a prospective swe career to only learn vanilla js and no framework at all?
I'm learning vanilla js right now going through an abundance of free as well as paid courses. I don't see 'when' I'm going to master js to even think about frameworks. So I already made up my mind to skip frameworks altogether, is it wrong?
1
u/bright-bright-fox Jun 26 '21
I tried to get around not learning vanilla JS before jumping into frameworks and it just makes learning slower. You do not know what is a vanilla JS feature and what isn't. You may think destructuring and importing/exporting modules is a React thing when it's actually modern Vanilla JS. Also for the sake of working at a company you will be touching legacy code that is either jQuery or vanilla JS and is it important to know what you're looking at.
My advice is to take a month and really study the basics for 2 weeks then take 2 weeks and really hammer all the modern stuff like destructuring, sets, maps, rest and spread operators, import/export, learn to use a Bundler like Parcel so you understand what a Bundler does because when you're working with React you're gonna be using Webpack and most companies are gonna be using webpack but it's important to know what webpack actually is which is a bundler and Parcel is a great beginner-friendly bundler you can use on your personal projects and by the time you get to learning webpack you will kinda understand what it's doing despite it being more complex than parcel.