CodeXpress

Welcome, Guest: Join CodeXpress Log In!

Stats: 11 Members, 99 topics and 9 posts Date:  Saturday 31 October 2020 at 11:51 PM

This is a product of CodeXpress Buy License for your website

Learn Vanilla JavaScript Before Using Js Framework

CodeXpress / Science/Technology / Webmasters / Learn Vanilla JavaScript Before Using Js Framework

51 people viewed

How To Accessibly Disable A Form Button When Submitting With Ajax Using Vanilla Js Vanilla The Future Javascript [go Make Things] How To Clear All Of The Fields In A Form With Vanilla Js Two Ways To Get And Set Html Content With Vanilla Javascript
(1) | (1 of 1 pages) (Go Down) (» Reply topic)
Learn Vanilla JavaScript Before Using Js Framework by Marshallunduemi(): Tue 12, May, 2020
kenyans247
Yes, You Should Learn Vanilla JavaScript Before Fancy JS Frameworks
What's the meaning of Vanilla JavaScript? When was the term coined?

The history of the Vanilla JS site, which poses as a "JS framework" site, is short but funny. Eric Wastl created it in 2012, using a bit of trolling and confusion to hammer home a point: you can often use plain JavaScript instead of additional JS frameworks or libraries.

While Eric didn't coin the term per se, his site definitely helped popularize it.
The state of modern, plain JavaScript

Historically speaking, developers needed to bypass plain JavaScript for MANY tasks, be it to make their code behave consistently across browsers, or just to go beyond what Javascript offered at the time. We're talking IE 6-7 days. Developers often defaulted to jQuery in the process. But this long-lasting reflex of relying on external libraries is now irrelevant, thanks to the evolution of the ECMAScript spec, and to modern browsers keeping up with it more closely.

Today, picking vanilla JS vs jQuery is more often than not the smartest choice, so your codebase doesn't end up needlessly bloated with dependencies. An obvious example from the excellent You Might Not Need jQuery:
jQuery

$('.my #awesome selector');

vs vanilla JS:

document.querySelectorAll('.my #awesome selector');

That site is full of useful vanilla JS examples—have a look!

Oh, and in case you need any more social proof:
https://twitter.com/mislav/status/1022058279000842240?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1022058279000842240&ref_url=https%3A%2F%2Fsnipcart.com%2Fblog%2Flearn-vanilla-javascript-before-using-js-frameworks

Welcome to CodeXpress Forum Script - Download NL script Free
RE: Learn Vanilla JavaScript Before Using Js Framework by Marshallunduemi(): Tue May 2020 11:14am

Marshall Unduemi:
kenyans247
Yes, You Should Learn Vanilla JavaScript Before Fancy JS Frameworks
What's the meaning of Vanilla JavaScript? When was the term coined?

The history of the Vanilla JS site, which poses as a "JS framework" site, is short but funny. Eric Wastl created it in 2012, using a bit of trolling and confusion to hammer home a point: you can often use plain JavaScript instead of additional JS frameworks or libraries.

While Eric didn't coin the term per se, his site definitely helped popularize it.
The state of modern, plain JavaScript

Historically speaking, developers needed to bypass plain JavaScript for MANY tasks, be it to make their code behave consistently across browsers, or just to go beyond what Javascript offered at the time. We're talking IE 6-7 days. Developers often defaulted to jQuery in the process. But this long-lasting reflex of relying on external libraries is now irrelevant, thanks to the evolution of the ECMAScript spec, and to modern browsers keeping up with it more closely.

Today, picking vanilla JS vs jQuery is more often than not the smartest choice, so your codebase doesn't end up needlessly bloated with dependencies. An obvious example from the excellent You Might Not Need jQuery:
jQuery

$('.my #awesome selector');

vs vanilla JS:

document.querySelectorAll('.my #awesome selector');

That site is full of useful vanilla JS examples—have a look!

Oh, and in case you need any more social proof:
https://twitter.com/mislav/status/1022058279000842240?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1022058279000842240&ref_url=https%3A%2F%2Fsnipcart.com%2Fblog%2Flearn-vanilla-javascript-before-using-js-frameworks

So what's the point here? I took enough time to understand the core principles of JavaScript before using shortcuts provided by JS frameworks and libraries. Why is that important? Well, this is what this post is about: not just pretending. https://snipcart.com/blog/learn-vanilla-javascript-before-using-js-frameworks
kenyans247

0 Likes


Welcome to CodeXpress Forum Script - Download NL script Free
(1) | (1 of 1 pages) (» Go Up)

You must Sign in or Sign Up to post content

For you to post content on this website you have to log in or register, it only take few minute to create account

Go Up

Recommended for you

Two Ways To Get And Set Html Content With Vanilla Javascript How To Show And Hide Elements With Vanilla Javascript Best Resources To Learn Vanilla Javascript From Scratch 2020 [go Make Things] Run A Function After A Specified Amount Of Time Using Vanilla Js

Currently: 1 guest(s) reading this article

Developed by Codexpress Programming Labs
Post content
Powered by Marshall