Diff between framework and library
Links ::
https://www.google.com/amp/s/www.sencha.com/blog/difference-between-framework-vs-library-snc/%3famp=1
https://www.baeldung.com/cs/framework-vs-library
.............................................................
examples of frameworks ::
ext js , angular , django , express , rails , spring ,
examples of library ::
react , redux , three.js , lodash , jquery
.............................................................
diff library and framework ::
1.
.............................................................
- Reduces code length
- Enable code reuse
- Ease debugging and application monitoring
- Simplify database connectivity
- Improve security
- .............................................................
libraries ::
react :: react is a front end library not a framework
redux :: redux is a javascript open source library
jquery :: jQuery is currently one of the most popular libraries among front-end developers.
jQuery includes many helpful features for web development, including AJAX, easy DOM manipulation, event handling, animation effects, and so on.
.............................................................
.............................................................
A library is like going to Ikea. You already have a home, but you need a bit of help with furniture. You don’t feel like making your own table from scratch. Ikea allows you to pick and choose different things to go in your home. You are in control.
A framework, on the other hand, is like building a model home. You have a set of blueprints and a few limited choices when it comes to architecture and design. Ultimately, the contractor and blueprint are in control. And they will let you know when and where you can provide your input.
Put simply, the “Inversion of Control” (IoC) describes the difference between a library and a framework. In some ways, you can think of a framework as a collection of libraries, but it’s entirely different. By using a library, you control the flow of the program. The library can be invoked whenever and wherever you like. Contrary to this, when you use a framework, the flow is controlled by the framework. The framework instructs you where to put your code, but it will call your code as required. Simply put, our code calls the library’s code, but in a framework, it’s the framework’s code that calls our code as shown in the below diagram.
Comments
Post a Comment