This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

library vs framework

 
bryan lim
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!
 
Campbell Ritchie
Sheriff
Pie
Posts: 50217
79
  • 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
Sheriff
Pie
Posts: 50217
79
  • 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
Sheriff
Pie
Posts: 50217
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
salvin francis
Bartender
Posts: 1308
10
Eclipse IDE Google Web Toolkit 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic