this post was submitted on 04 Mar 2025
47 points (100.0% liked)
Programming
18675 readers
108 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
They’re overlapping concepts, and can be used interchangeably. Sometimes a library can be all of them at the same time. In simple terms:
Not all APIs are libraries. For example, all websites have some interface to interact with them. A website is not a library.
Not all libraries are packages. A library don’t need to be distributed through a package manager.
Framework is a bit blurry where the line is drawn. I think if the library is used in such way that your entire program revolves around it, then it’s a framework. If you’re just using it a handful of times, then it’s not a framework.
React and Angular are frameworks in this regard. If you use them, then your entire programming is revolving around them. Any decision made is in regard to these frameworks.
I would say OpenGL is API, library and framework. Maybe also package depending on how it’s distributed.