Framework vs Library

Lucien·2023년 8월 6일

Framework

A software framework is an abstraction in which software, providing generic functionality, can be selectively changed by additional user-written code, thus providing application-specific software.

Library

A library is a collection of non-volatile resources used by computer programs, often for software development.

Key difference

Inversion of control (IoC) is a design pattern in which custom-written portions of a computer program receive the flow of control from a generic framework.

  • When you use a library, you are in charge of the flow of the application. You are choosing when and where to call the library.
  • When you use a framework, the framework is in charge of the flow. It provides some places for you to plug in your code, but it calls the code you plugged in as needed.

Source: https://www.freecodecamp.org/news/the-difference-between-a-framework-and-a-library-bd133054023f/

1개의 댓글

comment-user-thumbnail
2023년 8월 6일

좋은 정보 감사합니다

답글 달기