What is a Code Framework or Library (Vue.js, React, Java Spring), why should you care?

preview_player
Показать описание
There are many tools that developers should use to speed up and improve the quality of the code they write. Among the most important programming tools are frameworks.

Popular ones include:

- Laravel for PHP
- Django for Python
- Spring for Java

.... And there are many, many more.

Learn all about my Mentoring program:

My popular courses:

My business courses:

My new business channel StudioWeb:

Experienced one of my courses? Please leave a Google review:

My social links:

Thanks!
Stef

Рекомендации по теме
Комментарии
Автор

The essential difference between a _library_ and a _framework_ is that in a library users themselves both
(1) choose the code units they need for their system; and
(2) decide the order of execution of these code units within a "main" module that is written by the user.

In a framework, the designers of that framework both
(1) select all the _default code units_ used in the system based on what _most users need_ ; and
(2) write the "main" module in a way that executes all the default units in a _fixed order_ .

So the main difference lies with the so-called "flow of control" in the system. In a library, the user themselves decide it, in a framework it is predecided and always the same.
Most modern frameworks have a configuration facility that allows users to switch off any default functions that they don't need. Also some frameworks allow users to insert their own customized objects & functions before or after one of the default framework functions. _But framework users can never change the order of execution of any two default functions in the framework_ .

*Library Pros*
- Can have only those modules you want and in the order you want them, leading to tailored design, light memory payload and fast execution
- Can insert self-written or third-party modules, giving system flexibility and a greater sense of creativity by the coder
- Library units are tested by many previous users, saving time over self-written units

*Library Cons*
- User must do all testing of custom or third-party modules used with library units
- User must do all their own integration testing
- Slow development process, even for prototypes of small systems

*Framework Pros*
- "Out-Of-The-Box" working system, often needing no additional code or integration testing, fast prototype system assembly
- Tried and proven solution to the typical user's needs
- Can configure out functions not needed
- Can (in some frameworks) add in custom functions and objects in relation to order of default function

*Framework Cons*
- Customization limited: may add new functions but can't reset function order
- Memory, execution and performance inefficiencies when used with atypical applications or limited concurrent user numbers
- Some frameworks make use of newest language constructs, subsidiary frameworks for implementation, front end presentation and data mapping - all this gives newbees a very steep learning curve. For example Node.js (uses Express, React/Vue/Angular, MongoDB/Mongoose plus built-in and NPM modules all linked in JavaScript ES6). Similar elaborate dependencies apply with Java Spring. In Node framework case, it's easier for learners to pick up if first apps use only developer's scripts, the Node built-in library and a few NPM modules.
So complex frameworks require knowledgeable personnel for efficient development
- Limited sense of creativity by the coder due to necessity of working within constraints of framework and its envisioned design patterns

benzflynn
Автор

Stefan, thank you THANK YOU for not using jargon and explaining this concept in such a clear and concise way! You're an excellent teacher.

alainmelchor
Автор

It's hard to believe this is possible, but these video lessons keep getting better, addressing the inevitable concerns and confusions.

toddboothbee
Автор

btw, vue3 was just released a few days back

deecee
Автор

ive had this doubt for so many days, i didnt uderstand until this video got suggested. Thanks

hemnathshanmugasundaram
Автор

Thank you Stefan for always sharing valuable information, I'm a 30 year old who started learning programming early this year, and I have always watched your informative videos which I find very helpful, Thank you man It's Sibusiso from South Africa, in this country Java is in high demand always, so what I'm focusing on that (Spring etc)

sibsthedev
Автор

Thank you for your conciseness and analogies. Helped me get the concepts right away 🙏

shakhsaid
Автор

A very great tip. No need to re-invent the wheel, there will be plenty of time to write code. I guess you were speaking to me. Many thanks

harunmwa
Автор

That was really helpful. I saw several other videos, but I got everything watching this video! Thank you!

lailagaber
Автор

Laravel with Vue is a good option, very popular actually.

ayaneshsarkar
Автор

Great explanation, in easy language and delivery so average Joe's like me can understand.

als
Автор

Just watched your video on Coffee Script. Would you recommend Vue or Laravel for the server code for a multiplayer web game where many players would be playing at the same time.

BluecoreG
Автор

i love the way u explain, when everything seems so dark u just come n turn on the lights 😻🌹

sunshine
Автор

I have been turning in cycle learning more deeply stuff, and i think i is nice to feel confortable with the base without building up but playing :)
I was actually watching your video cause i hesitate with Vue and React... I play laravel already... So I guess you confirmed going for first framework JS vue is ideal and on top can combine ;)
Thank you :)

samduss
Автор

Hello Stefan. Vos vidéos sont super intéressants. Surtout vos explications sur le fait qu'un code doit être self-describe. J'ai partagé vos vidéos à un ami qui veut débuter dans le codage et cela l'aide beaucoup. Moi je suis ingénieur en image processing and machine learning. Mais vous écouter est toujours un plaisir. Bon courage...! Et merci.
Ibraheem.
From Paris...!

ibrahimaba
Автор

Nice to know I'm on the right path thanks Stefan, btw yes! as someone mentioned before me, please bring back the Ruby jokes! :)

Mac
Автор

06:47
some devs say that i need to understand how vanilla JS work than jump into framewoks for exemple : High array methods,
others say never learn to code something unless you need it, which mindset should i have ?

touhami_dz
Автор

your videos are so good, i don't know why you don't get more views

ulrohermit
Автор

Best explanation I have seen yet. Thank you.

itpugil
Автор

Thanks man for this easy explanation of frameworks 🔥🖤

abdellatif.x