• 71 Posts
  • 380 Comments
Joined 2 years ago
cake
Cake day: June 24th, 2023

help-circle








  • My understanding:

    • API = a communication interface between different pieces of software, can be running on the same machine (e.g. a library API) or on another (e.g. a HTTP API)
    • library = code that provides some reusable functionality that someone else wrote and that you, as the application developer, are calling and using the return values of
    • package = can mean different things depending on context and programming language, the metaphor is that it is code that somehow belongs together, but there’s no general way to define this
    • framework = code that provides the general structure of code and that is extended by the application developer to implement actual functionality

    The way it’s been explained to me is that the difference between a library and a framework is that a library is something that you call from your code, a framework is something that calls your code.