Framework and Librariy?
I've got so confused...
A library is a piece of code that someone else wrote that solves your particular problem. A framework is also pretty much the same except the following. Your code calls the code from the library whereas, the code from the framework calls your code. You don't have limitations when working with a library. That is, you can code in any way you want and don't have to re factor your entire codebase in a particular configuration. Whereas when you use a framework, you have to arrange your code according to how the framework demands. For example - Scanner class is a library in Java. Whereas Laravel is a framework in PHP.
i think api is somthings like library that just you can call that and recieved your results like amazon web services library is an piece of code that can be used in your project like log4j a framework can help you to make structural project like spring project
Обсуждают сегодня