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. 

When you use a library, you control the application flow, including when and where to contact the library. When you use a framework, the framework itself controls the flow.

2. 
in library you can create the things and in the framework you can not create the things because everything is properly managed initially.

.............................................................

what framework do ::

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

.............................................................

frameworks ::

Rails ::
Rails is a popular Ruby-based Model-View-Controller framework liked by many developers.

spring ::
Rails is a popular Ruby-based Model-View-Controller framework liked by many developers.

.............................................................

Both libraries and frameworks are reusable code written by someone else. Their purpose is to help you solve common problems in easier ways.

.............................................

framework and library ::

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

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5