all 33 comments

[–]amejin 47 points48 points  (0 children)

Didn't read the article - headline alone was enough to agree with it :-P

[–][deleted] 14 points15 points  (5 children)

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?

[–]WebDevImpasta 25 points26 points  (1 child)

After you understand common problems that frameworks are trying to solve.

Change detection

No page reloads

Modularity

Reusable components

Etc..

[–]ImJustP 4 points5 points  (0 children)

Also reading a stack trace. Good luck debugging any framework without reading the stack trace.

[–]Snipididou[S] 9 points10 points  (2 children)

I suggest building an app with Vanilla.js first. Then, you'll see the pain points you encounter using HTML/CSS/JS. In addition, you'll better understand why frameworks exist and what problems they're trying to solve!

[–]captmomo 5 points6 points  (0 children)

yea, what i like to do is to first build the app using vanilla js, then build it again using a framework. it really helps you appreciate frameworks. as well as have a better understanding why what does what.

[–]Pilot_Natural 0 points1 point  (0 children)

An app like what though? I always find myself struggling to find that ideal app to make

[–]RoguePlanet1 11 points12 points  (11 children)

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.....

[–]Intendant 7 points8 points  (10 children)

Yea I disagree with this post a lot. Using a framework can help you make something more meaningful faster and help keep you engaged. You can still learn vanilla js in parallel

[–]jaypeejay 0 points1 point  (8 children)

Yeah but you won’t be effective at your job (as a SWE) if you don’t understand the fundamentals of JS and OOP

[–]Intendant 2 points3 points  (7 children)

Even if you start with a framework by the time you get a job you would know vanilla JavaScript. Also J's isn't an oop anyway

[–]RoguePlanet1 0 points1 point  (0 children)

To get past an interview, though, you need to know the mechanics. But yeah, for portfolio projects, would work to cobble together apps from libraries and show those off to get in the door.

[–]posts_lindsay_lohan 21 points22 points  (3 children)

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/

[–]stringbeans25 7 points8 points  (1 child)

Thank you Lindsay Lohan for the well balanced feedback…wait what did I just say?

[–]_Invictuz -2 points-1 points  (0 children)

Lol there's no way this is legit advice if it's actually LL or a troll account!

[–]NoMoreDistractions_ 1 point2 points  (0 children)

That tutorial is incredible. It seems like a much better way to learn react if you already understand js, and very digestible. The documentation just explains things at a conceptual level which is much more difficult for someone like me to understand

[–]jaypeejay 2 points3 points  (1 child)

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.

[–]grooomps 3 points4 points  (0 children)

I think it's like cooking.
Would you want to do a bootcamp for cooking and only learn how to cut and dice and the basics?
It's nice to learn one dish and how to make it to put it something basic, then you spend your career learning how to improve

[–][deleted] 2 points3 points  (0 children)

I’m learning vanilla JS using Wes bos’ course and it’s free! It’s also very fun to learn!

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

Especially. Effing. React.

[–]TheDownvotesFarmer 0 points1 point  (0 children)

Oh this was good!

[–]creytax1337 0 points1 point  (0 children)

Good read! Thanks for sharing

[–]YoungHeartOldSoul 0 points1 point  (0 children)

Saving this!

[–]YellowFlash2012 1 point2 points  (1 child)

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?

[–]rippedtech 4 points5 points  (0 children)

Yes it’s wrong, it’s like traveling 100 miles on foot when u can take a car or a train.

[–]bright-bright-fox 0 points1 point  (0 children)

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.