What's the difference between a framework and a library | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What's the difference between a framework and a library

7th May 2019, 9:22 PM
INFINITÎ🌀
INFINITÎ🌀 - avatar
4 Answers
+ 8
A library is something that you can pretty much do by yourself. You could write a couple of utility functions put them in a file and there you are. After that you can import them to whatever program you write. "Professional" libraries provide way more functionality than that but basically that's what libraries are. A framework is a bit more. You can think of it as a very elaborate template that includes several libraries and even code from different languages. It is a whole software environment, providing you with a skeleton of files that are already prepared for working together. So for example django for Python includes a server plus already prepared files for views, models etc. and html templates. Hth!
7th May 2019, 10:06 PM
Thoq!
Thoq! - avatar
+ 6
E.g. AngularJS is a framework. jquery is a library.
7th May 2019, 11:10 PM
Sonic
Sonic - avatar
+ 4
Framework = Environment eg) . net Library = dll or exe (executables) 🤔
9th May 2019, 3:43 AM
Sanjay Kamath
Sanjay Kamath - avatar
0
Thoq! Great explanation 👍🏽
17th Aug 2020, 6:59 AM
Zone
Zone - avatar