Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

library vs framework

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone tell me what is the main difference between them?

I googled and think that framework is many libraries. But people are using them interchangeably. i need some confirmation here.

thanks!
 
Marshal
Posts: 69864
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a lot of difference. Really a library would mean where lots of classes are kept, available for use, and a framework is a lot of classes available for related purposes.
 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for your reply. what are the "related purpose" ? you mean a lot of classes working towards a specific goal/purpose
 
Campbell Ritchie
Marshal
Posts: 69864
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Look at the Collections Framework
 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you so much.
 
Campbell Ritchie
Marshal
Posts: 69864
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
Saloon Keeper
Posts: 2625
128
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
correct me if wrong

i believe that a library is collection of reusable elements
eg: swing, awt

a framework is an approach we take (/borrow/use/incorporate)
eg: AJAX is a framework, spring is a framework
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic