Тёмный

JavaScript frameworks vs Vanilla JavaScript 

edutechional
Подписаться 42 тыс.
Просмотров 25 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@newcomer4220
@newcomer4220 3 года назад
Vanilla is faster..nearly 30 times faster than React on an average.
@othneildrew
@othneildrew 4 года назад
I was really waiting anxiously for him to write something on that chalkboard 😪
@edutechional
@edutechional 4 года назад
Ha, I try to mix that in from time to time.
@NowHereUs
@NowHereUs 5 лет назад
Vanilla is faster, Vanilla is light. Having a thousand node in a page is not a good idea. May be in some situation you may need it, then possibly a framework can help you better.
@herrbasan
@herrbasan 5 лет назад
I would add that working close to browser APIs makes it easy to optimize code, once you understand what they do and how they work.
@NowHereUs
@NowHereUs 5 лет назад
@@herrbasanRight. This guy made an insane proposition by claiming that JS frameworks are faster than Vanilla JS. Yet people on internet are trusting this guy, because he just put on a video on the topic!
@johnathanbrandt3027
@johnathanbrandt3027 3 года назад
@@NowHereUs I am soo glad you said this, I was annoyed by his claim. This is poor advice in my opinion
@johnathanbrandt3027
@johnathanbrandt3027 3 года назад
02:31 - this argument drives me crazy. If a dev is not able to read the code and understand vanilla JS, then the code was either badly written or the dev is not up to par. In that scenario a framework or a library will not help.
@eddwinpaz
@eddwinpaz 4 года назад
what about use TypeScript and HTML allows you to be compliant with old js browsers. Remember Frameworks are not created to solve your problems, but instead are created to solve creator's problems. I rarely use frameworks. and instead use good clean architecture patterns.
@newcomer4220
@newcomer4220 3 года назад
How C++, C, Java developers work? Do they don't understand each other's code?really, the thing is web-developers are getting lazy a lot that's why even after using such a High level language like Javascript they don't understand anything. Nice video tho
@iorekby
@iorekby 5 лет назад
Whether or not a framework should be used depends on how much JS knowledge a developer has and the particular project. For example, if it's a project involving sensitive information, it's much more secure for me to write my own JS than it is to hand it over to some framework and hope that TypeScript or React has their act together and hasn't missed any important vulnerabilities. XSS is the most prevalent attack surface for hackers, precisely because people don't understand the security implications of using a framework or subset of JS.
@humann5682
@humann5682 5 лет назад
@@kidmosey I've been doing software QA for 17 years and my Info Sec master's dissertation was on JavaScript vulnerabilities. Additionally there are some powerful tools out there to keep you right in terms of JS vulnerabilities, and I'm not the only one checking code. That's what a QA team is for, and surely you know it's not the responsibility of a developer to be 100% responsible for testing their own code, right? My whole career and post grad education is literally JS security. Respectfully, I've seen too many fuck ups and "well maybe someone else will check if it's secure" on things like jQuery to trust "thousands of developers", the vast majority of whom don't seem to care about security.
@humann5682
@humann5682 5 лет назад
@@kidmosey because Apple and Microsoft are the only owners or contributors to JS frameworks?? That's a false dichotomy. And even proprietary languages like C# and Swift still have vulnerabilities, simply going "well, Microsoft done it, so I guess I can sleep easy" is a pretty reckless attitude to code security. Typescript, for instance, has had known security issues with its transpiling out insecure JS. It's been reported. But so far it hasn't been patched properly. You don't need to be Tony Stark to understanding security risks in good and while it takes effort, to understand the difference between secure and insecure JS. Trusting a third party because you couldn't be bothered to double check everything is precisely why insecure reaches production. Rather than reading what a transpiler does, why not write it myself, or run the Is through the rigourous security checks my colleagues have set up that simply don't exist in things like Typescript.
@humann5682
@humann5682 5 лет назад
@@kidmosey It's not some mystical level of achievement though. It's basic, robust security-centred QA and putting some effort it to understanding secure coding. It's not like we're building the next Google. If people don't WANT to put that effort in or don't work for a company that supports it, that's a different story.
@AdamFJH
@AdamFJH 3 года назад
@@kidmosey No, it is not more foolish. What is foolish is blindly trusting third party code for example blindly trusting jwt libraries to be secure and what end up happening was that many jwt libraries just foolishly implemented the jwt rfc specs which allow insanity such as valid tokens without jwt signiture. The problem isn't just blindly trusting third party libraries though, as seen with what happened with jwt, blindly trusting industry standards like rfc is also foolish like blindly trusting Oauth as well.
@andrewilliams1974
@andrewilliams1974 5 лет назад
Hence the issue with learning Frameworks at the same time as learning JavaScript. Programmers should understand the basic foundation of programming to be considered a senior, especially a master.
@VikasPoonia
@VikasPoonia 5 лет назад
Can you list any resources for this except ECMAscript.
@lifeisadoughnut
@lifeisadoughnut 4 года назад
This was quite clear. Thank you for the explanation!
@edutechional
@edutechional 4 года назад
Glad it was helpful!
@self-purpose
@self-purpose 24 дня назад
AS a solo developer making small sas projects I find vanilla JS is best for me.I hate depending on 3rd party libraries, I already depend on the language itself.The benefit of frameworks comes with double disadvantages, what happens when react is no longer maintained and there's a new kid on the block, you move everything? I hate when people say "you don't need to understand what happens behind the scenes" of course you do , are you a real programmer or a dork
@bcburnettcom
@bcburnettcom 4 года назад
Once again shadow dom, Custom elements (lit-element is a good class) redux for state, just use simple libraries to get what you need. React is trying to rewrite all the functionality that is now part of every modern browser at the cost of downloading tons of extra script! Do a cost assessment of a simple todo list in react and one using custom elements. and you will see a drastic size difference between the bundles.
@edutechional
@edutechional 4 года назад
Yes, I wouldn't pick out React for a small application, but it does work very well at scale, do to a number of the performance features that it has.
@ahmadzaidi7374
@ahmadzaidi7374 4 года назад
if you want to use react, it doesn't have to be the entire application written in react, it can be just a single component using react
@starstuff4532
@starstuff4532 4 года назад
few time ago I hadnt any experience on vanilaJS but now I am expert! hehe
@PhillipParr
@PhillipParr 5 лет назад
Who remembers the good old days when we didn't dump all the business logic into a much slower client side language and make a much slower client device re-render the page on every load? Javascript has become the new Flash, and as soon as we reign it in the better.
@unabonger777
@unabonger777 5 лет назад
throw away the whole stack and start over. Tim Berners Lee is an idiot.
@cloudpuncher4615
@cloudpuncher4615 4 года назад
what? custom elements and shadow DOM have made frameworks obsolete..
@edutechional
@edutechional 4 года назад
Most frameworks use the shadow dom, what's your question?
@bcburnettcom
@bcburnettcom 4 года назад
@@edutechional NO, The frameworks you mention use virtual dom. Virtual dom is not shadow dom.
@Elmastomas
@Elmastomas 4 года назад
I'm learning how to code. Do you recommend to use those frameworks to coding?
@edutechional
@edutechional 4 года назад
I'd recommend to learn JavaScript first, and then learn the frameworks.
@glurp1er
@glurp1er 3 года назад
If you learn to properly code, all you'll ever need is Vanilla JS ;-)
@theoligarchist1503
@theoligarchist1503 3 года назад
So basically its not possible to create a MV* using Vanilla JS
@edutechional
@edutechional 3 года назад
You can, technically all frameworks such as Angular, React, and Vue use Vanilla JS to build out the MVC structure
@glurp1er
@glurp1er 3 года назад
Of course it's possible! How do you think frameworks are coded? They are just a bloated layer on top of Vanilla JS. Pretending frameworks are magically "quicker" than Vanilla JS makes no sense!
@chrischoir3594
@chrischoir3594 4 года назад
React isn't a framework it is a library
@glurp1er
@glurp1er 3 года назад
No React is a framework. You have to build your project around it. You can't add or remove it from an existing project. JQuery is a library, you can add or remove it, you can use it only for the thing you need, it doesn't control how you build your project.
@davidk5569
@davidk5569 6 лет назад
WHat??? really?
@codelucky
@codelucky 5 лет назад
Instead of reinventing the wheel, we prefer to use Framework.
@herrbasan
@herrbasan 5 лет назад
the framework is already a re-invention of the wheel.
Далее
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
WHO IS MORE GREEDY?!
00:18
Просмотров 934 тыс.
Why is It Important to Learn JavaScript?
5:10
Просмотров 38 тыс.
Should you learn Vue.js or React.js?
10:49
Просмотров 39 тыс.
jQuery vs Vue, React and Angular
14:50
Просмотров 114 тыс.
What To Learn Before A JavaScript Framework
23:19
Просмотров 232 тыс.
Before Learning a JavaScript Framework...
9:28
Просмотров 185 тыс.