r/learnprogramming • u/Crisn232 • Aug 23 '22
Solved What is framework?
dotnet framework? (am I saying that right?)
react framework? Django?
Can someone help me understand what "framework" actually means? (what does it do? how are they different from programming language and using IDE's? )
I get confused when someone uses these terminologies, but I can't visualize what it's supposed to be, and separate it from what I already do now.
Is it an "engine" like (unity) where it comes with all these features for development, and that engine just happens to use a programming language like C# or python?
37
Upvotes
8
u/HansAuger Aug 23 '22
The following explanation helped me:
Frameworks are very much like libraries that tick the following two boxes:
They have a strong opinion what kind of final product should be produced with them. For example, Django => Webapp, React => Web Interface, Unity => Game. Libraries are meant to be used for any context.
They influence how your code will look like. For example Django's Model/View approach, React's Functional components, and so on. In other words, Libraries give all the control on how they will be used to the user of the library, while a frameworks will enforce its rules onto the user to a certain extent. Hence the name.