What is the difference between a Library and a Framework

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 318

  • @mnadjp
    @mnadjp 4 ปีที่แล้ว +97

    A code library is like a real-life book library. You can pick the book when you want it as per your needs i.e. call the library functions when you want.
    A framework can be thought of as a photo frame where you have to consider the height and width of the frame for filling the photo i.e. you have to follow rules/standards/conventions of the framework to use it.
    Tip:
    When English is not your first language you may feel it is difficult to grasp the terms and you will try to find an analogy.
    Most of the time it is better to look for the meaning of technical terms in the English language first. Sometimes that alone helps you.

    • @zamirshams3430
      @zamirshams3430 2 ปีที่แล้ว

      perfectly brought out, however there are many non native English speakers as programmers

    • @atchayaa3897
      @atchayaa3897 2 ปีที่แล้ว +1

      Your comment was very useful to me I have read many sites but I got clarity in this comment

    • @srinivasanh3931
      @srinivasanh3931 ปีที่แล้ว

      Great explanation, thanks!!

    • @su1nta
      @su1nta ปีที่แล้ว

      A Golden Tip

    • @sumayya3326
      @sumayya3326 ปีที่แล้ว

      Beautiful explanation

  • @kyukyahua
    @kyukyahua 6 ปีที่แล้ว +144

    So, it can be said that Library is used, for any programming languages, to enhance it's accessibilty and Framework is used to gain control over a certain action using a defined set of parameters and adhereing to the rules of the framework.

  • @mukulvashishth9974
    @mukulvashishth9974 ปีที่แล้ว +12

    In summary, a library gives you individual tools you can use as you like, while a framework provides a structured environment where you follow predefined rules and use existing components to build your application.

    • @guru_bro
      @guru_bro 4 หลายเดือนก่อน +2

      Loved the explanation

  • @ianpaul0520
    @ianpaul0520 4 ปีที่แล้ว +87

    library = a collection of functions to be used in your project. While
    framework = a collection of functions BUT it provides structure to your project.

    • @dsa43fsdf
      @dsa43fsdf 2 ปีที่แล้ว +21

      thank you for this explanation, this video was way over-complicated lol, and in the end the video taught me nothing

    • @yyndsai
      @yyndsai 2 ปีที่แล้ว

      @@dsa43fsdf me too

    • @atchayaa3897
      @atchayaa3897 2 ปีที่แล้ว

      But it provides structure
      Can anyone put some light on it

    • @fitnessbeastgk1491
      @fitnessbeastgk1491 ปีที่แล้ว +3

      @@atchayaa3897 Since the Framework decides how the code should be called, it would define the structure of your project(Like where the js has to be kept, what should be the folder names etc) while if you are using library, you can structure your project any way you want and just use the library to get your stuff done.

  • @mysticatheinformationsansa3283
    @mysticatheinformationsansa3283 ปีที่แล้ว +6

    As far as I'm aware, a library is a tool that enables us to create something, such as a house, and a framework is an architectural plan or map that ties us to a clear set of guidelines for creating that building.

  • @ASIMKHAN-ig9eo
    @ASIMKHAN-ig9eo 6 ปีที่แล้ว +30

    You are doing really great work love from Pakistan

  • @letscode5367
    @letscode5367 6 ปีที่แล้ว +6

    I m searching this topic on google but no one clr the doubt the way u clear it . Thanx for the video 💚

  • @Norfeldt
    @Norfeldt 4 ปีที่แล้ว +21

    ReactJS is a library (in the beginning it was called a framework by many). You can use it to make your html components but you are not locked in - so reactJS is like home 🤗

  • @dave_roul
    @dave_roul 2 ปีที่แล้ว +2

    I think you are from India.
    I appreciate your work just because your videos are in English.
    Many talented personal are here, but mostly they do videos in local languages like Hindi Tamil Telugu... My wishes to your team.

  • @arpitagrawal8530
    @arpitagrawal8530 2 ปีที่แล้ว

    All interviews demand confident ppl. So must TH-cam teachers. Mr. Hitesh seems to be a hope in this direction.

  • @ShubhamSingh-re1tr
    @ShubhamSingh-re1tr 6 ปีที่แล้ว +5

    i was searching for framework since very long....now i got my point cleared..thanks sir

  • @chikwandaacademy
    @chikwandaacademy 3 ปีที่แล้ว +1

    Wow! I initially wanted to watch a 12 minute video to get the difference. Thank goodness I watched this video. Clear and easy to remember explanations. Thank you sir. The Lord bless you.

  • @GobinathPalanisamy
    @GobinathPalanisamy 3 ปีที่แล้ว +3

    I'm a big fan of your teachings, can you please give detailed insights about creating our own libraries from scratch.

  • @weilaiyvn_DEACTIVATED
    @weilaiyvn_DEACTIVATED 3 ปีที่แล้ว

    So library is a glossary (like cell keyboard corrector) and a framework is a modified version of the program to extract the most out of certain specific actions? Therefore, this "modified version" prevents uses that go outside its central focus (focusing on one use has the disadvantage of limiting its performances).

  • @codigosencillo8981
    @codigosencillo8981 5 ปีที่แล้ว +7

    You always trying to explain as good as you can. Good work.

  • @bharadwajkamepalli3903
    @bharadwajkamepalli3903 2 ปีที่แล้ว +1

    Lucid and comprehensive and lastly coherent explaination.

  • @GoodBoy-bt7kp
    @GoodBoy-bt7kp 6 ปีที่แล้ว +47

    In front of big brother = Framework
    In the absence of big brother= Library

  • @nelsonmunthe4571
    @nelsonmunthe4571 3 ปีที่แล้ว

    I knew diffrent library and from but its hard to explain. After watch your video, now i know how to explain its diffrent. Thanks bro, from indonesia

  • @satrangiduniaus
    @satrangiduniaus 6 ปีที่แล้ว +3

    Hello sir... u r my best computer teacher n motivater...

  • @tamizhazhaganjayapal6525
    @tamizhazhaganjayapal6525 4 ปีที่แล้ว

    From India; In your videos the english and concepts are very eacy to catch up.

  • @oluwaseyijoto8464
    @oluwaseyijoto8464 3 ปีที่แล้ว +4

    Thank you so much Hitesh. Your lectures has been awesome. I am enjoying JavaScript lectures really well. You made JS so simple to learn compare to my fears

  • @yogeshchugh6711
    @yogeshchugh6711 2 ปีที่แล้ว

    Thanks Hitesh for understand the concepts of library and framework

  • @Duda-ke3uz
    @Duda-ke3uz 3 ปีที่แล้ว

    Wow, i have read some article, watch some video still dont get it. But this one is very good n detail. Good work sir, thanks!

  • @webcode6992
    @webcode6992 4 ปีที่แล้ว

    Finally understand, please explain about server side rendering

  • @vladj2428
    @vladj2428 3 ปีที่แล้ว +4

    “ when you’re home you can throw your T-shirt’s where ever you like. “
    Moms: Am I a joke to you?

  • @gauravnagar3712
    @gauravnagar3712 6 ปีที่แล้ว

    Sir can you make a video on which you tell your views on mean stack . tell us something special about it ?

  • @maulikdomadia5717
    @maulikdomadia5717 6 ปีที่แล้ว +4

    Finest and easiest way to remember thanks hitesh

  • @sajalagrawal1430
    @sajalagrawal1430 5 ปีที่แล้ว +10

    inshort
    ans is on famous stackoverflow link
    like when you get it

  • @jibrankhan499
    @jibrankhan499 5 ปีที่แล้ว +246

    Library= Mother
    Framework= Father
    😂😂

    • @AniketMishra
      @AniketMishra 5 ปีที่แล้ว +5

      Thnkuu 😊😊 Now i got it correctly in 1s with Your example

    • @rajeswarynarasimman3728
      @rajeswarynarasimman3728 4 ปีที่แล้ว +6

      For me, my mother was the framework

    • @samchan5251
      @samchan5251 4 ปีที่แล้ว +2

      Almost all frameworks will use more than one library xD.

    • @jibrankhan499
      @jibrankhan499 3 ปีที่แล้ว

      @@karsonjonah8679 that awkward moment when you got the skill, but not a gf. '_'

    • @richarddiasribeiro429
      @richarddiasribeiro429 3 ปีที่แล้ว

      what?

  • @vijayalakshmi-lj7tk
    @vijayalakshmi-lj7tk 4 ปีที่แล้ว

    You style of explanation is awesome

  • @learnprogrammingwithproject
    @learnprogrammingwithproject 4 ปีที่แล้ว

    What should be learn first library or framework ??

  • @sharathchandra2002
    @sharathchandra2002 6 ปีที่แล้ว

    Hi hitesh, I want to know about the use of Jenkins and ansible can you do a video about that it will be helpful please

  • @anuragsinha6135
    @anuragsinha6135 4 ปีที่แล้ว

    Which one is to choose REACT or Angular for building large scale website?
    I have found MEAN is not great for making large scale website?
    What about MERN?

  • @ThePRDatta
    @ThePRDatta 4 ปีที่แล้ว +3

    You're a legend my friend. Thank you. Great explanation

  • @bharathkrish6743
    @bharathkrish6743 6 ปีที่แล้ว +4

    Nice video bro, can u put a video for Platform vs OS..somebody says Android is an OS and some says its a platform not an OS..please show some light on this topic..

    • @YoungDen
      @YoungDen 5 ปีที่แล้ว

      Yes it's a (mobile) OS

  • @learnwithalvin7327
    @learnwithalvin7327 3 ปีที่แล้ว

    thank you choosing to speak English .. you've made things a lot clearer.

  • @Yamu_777
    @Yamu_777 ปีที่แล้ว

    A library is a used to as your need . if your code calls the library eg : jquery
    A Framework is that restricted environment it have frameworks to calls the code for eg:django,react.js

  • @paroshrahman7474
    @paroshrahman7474 3 ปีที่แล้ว +1

    pretty straightforward and great explanation, thanks for the video.

  • @surajnegi6326
    @surajnegi6326 6 ปีที่แล้ว +87

    Library = Home
    Framework = School

  • @vijuvaghish2592
    @vijuvaghish2592 5 ปีที่แล้ว

    you are one the best Mentor in the world, please make videos on React

  • @shrutiambashtha6196
    @shrutiambashtha6196 6 ปีที่แล้ว +2

    sir,I have one question! can you tell me about qml/qt?Does it has demand in India? whether I should do it or not?

  • @AngelusChevalier
    @AngelusChevalier 5 ปีที่แล้ว +3

    Very clear and comprehensive explanation. Awesome job Hitesh thank you!!! Do you have any courses on udemy?

  • @Knych-nr4ot
    @Knych-nr4ot 3 ปีที่แล้ว +1

    What a great explanation. Thank you very much!

  • @prasoonpandey1184
    @prasoonpandey1184 6 ปีที่แล้ว

    Where was the previous Saturday live?

  • @tronganhnguyenthanh1157
    @tronganhnguyenthanh1157 ปีที่แล้ว

    You said that library is just like our home and we can do whatever we want. A framework is just like our school and company. Do you mean that we can control the flow that we want in a library, while a framework we have to learn about the rules. Am I right ?

  • @najimali32
    @najimali32 4 ปีที่แล้ว +1

    Thank you for explaining it with the simplest relatable example.

  • @sanugommulanikhilreddy8195
    @sanugommulanikhilreddy8195 5 ปีที่แล้ว

    what is the difference between ide and framework? @hitesh

  • @imaginarytechinhindi5507
    @imaginarytechinhindi5507 6 ปีที่แล้ว +3

    Nice explained sir .... I have this doubt from so many years ...

  • @sindhurram1036
    @sindhurram1036 2 ปีที่แล้ว

    For understanding..Framework is like established bussiness just using this we need to develop further

  • @ibadur-rehman
    @ibadur-rehman 4 ปีที่แล้ว

    I like the way of your explanation. Thanks

  • @oussamafortas
    @oussamafortas 6 ปีที่แล้ว +5

    This was very informative and interesting. Thank you for making this clear to understand.

  • @TanujPandey18
    @TanujPandey18 4 ปีที่แล้ว +1

    What about Standard vs. Framework? looking for an explanation ;)

  • @Shubhamsharma-nk8nz
    @Shubhamsharma-nk8nz 6 ปีที่แล้ว

    Thnx sir I was actually confused regarding these subjects so now I am clear with what actually diffence between library and framework......

  • @iconicpunit
    @iconicpunit 3 ปีที่แล้ว

    Can u make the English communication skills video how to communicate and all👍🙏I like ur way to communicate

  • @For_bikers
    @For_bikers 3 ปีที่แล้ว

    What is the difference between IDE and framework?

  • @antran540
    @antran540 2 ปีที่แล้ว

    Comment by Christian Fall below is short and direct and easy to understand to me

  • @quanle760
    @quanle760 5 ปีที่แล้ว +1

    This is true on the surface, but if you have worked with FW then gradually turn it into library, and vice versa, library into framework, then you would be able to see clearer. I strongly suspect if this man really understand the subject

  • @mosirag85
    @mosirag85 3 ปีที่แล้ว

    which of this can i manuplated or edit for custom use ?
    library isnt true ?

  • @abiguerrero7393
    @abiguerrero7393 6 ปีที่แล้ว

    finally I could get a more clear concept of the differences

  • @KevenKev-t7m
    @KevenKev-t7m ปีที่แล้ว

    you Are smart you explain it in esiest way so thanks

  • @akhileshwarreddy6790
    @akhileshwarreddy6790 6 ปีที่แล้ว

    from past two hours i'm watching your flexbox series...
    it is Cool..........

  • @aadhavjaimurugesh2734
    @aadhavjaimurugesh2734 ปีที่แล้ว

    Amazing explanation! Thanks a lot!

  • @CryptoRootz
    @CryptoRootz 6 ปีที่แล้ว +2

    Thanks for breaking down the game playa !

  • @sathya2650
    @sathya2650 6 ปีที่แล้ว

    Thank you for give an easy way to keep it in on mind..Could you please say about execute query and execute non query in c# language..

  • @aakashtrivedi9237
    @aakashtrivedi9237 6 ปีที่แล้ว +1

    thank you sir ji for such a clear and specific explanation

  • @jesseschlicklin4923
    @jesseschlicklin4923 6 ปีที่แล้ว +2

    Excellent explanation! I have been looking for a good channel to go along with David Banas' channel. I subscribed!

  • @saltech2024
    @saltech2024 ปีที่แล้ว

    Library is a specific design pattern that targets one single area of interest at a time
    Framework is the whole structured layout

  • @kishansinhparmar
    @kishansinhparmar 6 ปีที่แล้ว +2

    Thanks 4 giving your amazing examples.

  • @JitendraSingh-ow3vg
    @JitendraSingh-ow3vg 6 ปีที่แล้ว

    Hitesh Bhai! I have lot of confusons ...I want to join IT field as a programmer but i dont no anykind of programming language.I am B.Tech CS graduate but nothing knowledge of compute.How can i ?What i should do

  • @santoshpolurouthu7798
    @santoshpolurouthu7798 6 ปีที่แล้ว

    Hi hitesh I have one doubt why you always wear grey color T- shirts is there any reason.

  • @tomarshabh2199
    @tomarshabh2199 3 ปีที่แล้ว

    Good Hitesh Very well explained

  • @bhargavacharan2262
    @bhargavacharan2262 3 ปีที่แล้ว

    Superb Explanation!! Thanks for Making this video!

  • @harshsachdev9061
    @harshsachdev9061 6 ปีที่แล้ว

    Plz make video on react js vs angular js or angular js vs jquery

  • @madhuvamsimachavarapu5267
    @madhuvamsimachavarapu5267 6 ปีที่แล้ว +2

    Great video! One request: keep the intro song name in the description too!

  • @ameanshah
    @ameanshah 6 ปีที่แล้ว

    are all frameworks a programming language or just an environment for development.......???

  • @ravipandya198
    @ravipandya198 6 ปีที่แล้ว

    Sir how can we start machine learning project from beginning means what's need for it

  • @kosmic000
    @kosmic000 6 ปีที่แล้ว

    amazing and very informative as always hitesh , u r a great instructor
    some give an example about framework that its like working in hollywood "don't call us, we'll call you."

  • @changenew
    @changenew 2 ปีที่แล้ว

    Thank you very much brother 🙏 😇💓

  • @main-main6186
    @main-main6186 6 ปีที่แล้ว

    please can you elaborate on module

  • @user-zb5jp4ti1d
    @user-zb5jp4ti1d 3 ปีที่แล้ว

    Why is React or Angular not referred to as SDKs. In my view they can be used to build software aoplications, so why do we not refer to them as SDKs?

  • @dheemanthgarikipati9627
    @dheemanthgarikipati9627 6 ปีที่แล้ว

    Maven and spring are the examples right

  • @johng5295
    @johng5295 5 ปีที่แล้ว

    Thanks in a million. You make it simple.

  • @karanchhabra3926
    @karanchhabra3926 6 ปีที่แล้ว +4

    Bootstrap , library or framework?

    • @yojana575
      @yojana575 6 ปีที่แล้ว

      karan Chhabra framework

    • @kyukyahua
      @kyukyahua 6 ปีที่แล้ว +1

      Looking at Bootstrap's code, it can be said bootstrap is A CSS document with certain way of accessing it using class names, id's, and other anchoring tools. For my preference, I wish to call it a Library.

    • @fefeisbored1958
      @fefeisbored1958 6 ปีที่แล้ว

      Library.

    • @syedali1401
      @syedali1401 6 ปีที่แล้ว

      karan Chhabra Jquery and Bootstrap are both library.

    • @yogeshtiwari9929
      @yogeshtiwari9929 6 ปีที่แล้ว

      its a framework for CSS but it includes HTML+CSS+JQuery

  • @arjunkharbanda
    @arjunkharbanda 6 ปีที่แล้ว +1

    Then why Flask is called a Micro-Framework?

  • @Casmirnwanugo
    @Casmirnwanugo ปีที่แล้ว

    Can you please explain what a "stack" is?

    • @Haris-bg4jy
      @Haris-bg4jy ปีที่แล้ว

      It's just a data structure, a very simple one at that, at any moment you can only access the last added data element into it. Now where it becomes important is it's use in computer memory. Whenever you start a program your operating system allocates some memory for the runtime of that program, this allocated memory is divided into 4 main sections and into one of these 4 sections the stack data structure is implemented making this section what we call "The Stack".
      Following a simple example like C(since we only have to deal with functions here) every time a function is called it becomes the last added member of the stack, inside the space of the stack a function occupies(called its "Stack frame") all of its local variables are stored. Once it finishes execution, the whole stack frame of the function is removed or "popped" and we go back down to executing the function that called it in the first place. Any memory that you allocate outside the stack(using functions like malloc in C or new in C++) will be stored in "The Heap" division and you will have to control it manually unlike memory allocated in The Stack.

  • @rupeshsuryawanshi1244
    @rupeshsuryawanshi1244 4 ปีที่แล้ว

    Hello sir,
    I wanted to be a .net developer. But I searched lots of training institute they are not upto the mark.i visited one of institute in Nagpur they told me Microsoft updated .net syllabus. So they need time to update their course content. After listening this I got confused. Please give proper guidance on it.

  • @ramakrishnathotakura4063
    @ramakrishnathotakura4063 5 ปีที่แล้ว

    I like u r explanation....

  • @surajsharma5250
    @surajsharma5250 3 ปีที่แล้ว +2

    Hey, thanks for the video. Just one query thought. Could you please explain as to why we call Bootstrap as a framework?

    • @ShaidaMuhammad
      @ShaidaMuhammad 3 ปีที่แล้ว +3

      Bootstrap is a CSS, JavaScript framework. If it was a library, you could call functions directly.
      You always have to use classes to do some task with Bootstrap.

  • @codluca
    @codluca 10 หลายเดือนก่อน +1

    Good explanation

  • @jankidhanani7253
    @jankidhanani7253 2 ปีที่แล้ว

    Great help! Thank you so much!

  • @adarshpandey2978
    @adarshpandey2978 5 ปีที่แล้ว +2

    You are a great teacher

  • @_rytube
    @_rytube 4 ปีที่แล้ว +1

    Awesome analogy, thanks a ton!

  • @abdulahadkhamsoh3229
    @abdulahadkhamsoh3229 2 ปีที่แล้ว

    Thanks
    I will download that video!

  • @vikumravinayake1882
    @vikumravinayake1882 4 ปีที่แล้ว

    Understandable explanation. Keep it up dude👏👍👌

  • @tarun_gudipalli
    @tarun_gudipalli 4 ปีที่แล้ว +1

    That was really awesome. Thanks a lot, sir.

  • @shubhamsahu8335
    @shubhamsahu8335 6 ปีที่แล้ว

    Sir can you just make video on native script compare with other options available for android as well as ios development with same codebase like react ionic etc.

  • @harshaldhanawade5460
    @harshaldhanawade5460 6 ปีที่แล้ว

    Can u give details about .Net course carrier

  • @MohamedAymn
    @MohamedAymn 3 ปีที่แล้ว

    Well explained, really thanks 👌

  • @pranavgandhi9224
    @pranavgandhi9224 4 ปีที่แล้ว

    Love that explanation ... thankyou 👍

  • @gracemann365
    @gracemann365 2 ปีที่แล้ว

    Sending virtual hugs bro u saved my dumb ass🥺🥲