Can anyone explain me, what are frameworks,libraries and api's. What are the difference between them and how they are helpful? in the development area with some examples.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (4)
I'm not an expert but I'll try:
OMG!Thank you very much! The example was very helpful 😄
Framework
A framework uses the Hollywood Principle - "Don't call us, we'll call you." You have to integrate your code into a framework. Your code has to conform to the framework structure. Usually meaning it has to implement specific methods or properties.
Advantages
Disadvantages
Library
A library performs a specific function, and you call it for that function, and then move on with the rest of your code. When building your app from libraries...
Advantages
Disadvantage
API
API is an overloaded term. Generally speaking, it just refers to any library or framework's surface area... the exposed objects, methods, etc. that you are supposed to use. It is the dev equivalent of a user interface.
Web API
More specifically, a "web API" is typically a service that runs on the back-end to perform functions that the (usually Javascript) front-end is not capable of doing directly. So the front-end makes HTTP calls to the API service, which performs the functionality on the server. Examples: saving to database, sending email. Some web APIs are public, meaning anyone can call them to get data.
Thank you!!It was very helpful :)