In this article, I will tell you about the most famous topic of programming interviews that what are the differences between library and framework? Most people confuse this topic. They find about library and framework on the Internet. And they got some answers about it. They search about library and framework. But they don’t get the right answer for this topic. If you will read this article till the end then I hope that you will get satisfaction with the differences between library and framework.
Now let me tell you that what the issue is. The issue is that people were trying to understand what is the library and just trying to understand what is the framework. And they will get different answers for their queries. But it is not a perfectly correct thing. You need to understand both of the things side by side. If you will compare it side by side then you will never get confused about both of the topics. When you look out for any definition then you got that the collection of the library is called a framework. Which can be true or cannot be true? So you need to understand both sides by side. Here I will tell you the differences by two examples hope you will get the right answer after reading these examples.
Example No. 1:
In this example, the library is like your home and framework is just like your university. Where is the less number of rules it may be your home it means a library? And where is a large number of rules it may be your university means framework? For example, in your home, you can through of your t-shirts whenever in your home. And you can place your beg whenever you like. But when you are in a college or university then you have some fixed places whenever you can put your begs. There are some few options to put your beg or other things. So that’s like you are bounded by more rules. So as we know that we cannot do more things with a framework if we want to do more things in a framework then we need to change a lot of code, just like your college or university. But in your home, you have very less number of rules and most of the rules are built by you. But in the framework, you more bounded by the rules. You can do some certain kind of rules. Yes, you can change all of them but you need to spend more time, your efforts and you need to change much code.
Example No. 2:
So if somebody next time asks you. It’s all about the rules. When we have more freedom that means there are more chances that it gone be a library. When there are more restrictive rules then there are more chances to that it gone be a framework. And who is calling to whom is a great way to getting a sense that what it is? It is a library or it is a framework. If you want to get an example always in your head then just remember about the Jquery and Jango. Jquery is a library. And on the other hand, Jango is a framework. So there you go. Finally always remember that who is calling whom. And you will always get the answer that it is a library or it is a framework. From now onwards you can read those definitions keep that mind. Now you will get absolutely answer to your question that what is the difference between library and framework. No matter what you have the definition of library and framework. You should understand it. And that is the most important for every programmer.
So that it in this article. I hope you will get the answer to your question. If you love this article then show me your love in the comment section below. If you have any question regarding this article then you should write it down below at the comment section below.
You should also read these articles:
If you want to buy any programming course then you should visit here