Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Local Development Environments How it Works T.M.A. - Too Many Acronyms

Lukasz Walczak
Lukasz Walczak
6,620 Points

Libraries vs Frameworks

Hi, hello and welcome!

I always thought that libraries are different than frameworks, but Craig in this video says that API library contain Collection framework. I'm even more puzzled now :)

Another thing is - I dont fully grasp the whole framework idea? Is it like a programming language written in the same language?

Many thanks!

1 Answer

Hey Lukasz —

The term framework can be sometimes interchangeably used with the term library depending on the software. But in general, I'd consider a framework a collection of libraries or tools in a given language that is designed to help you accomplish a goal.

For instance, in the Ruby world, Rails is a framework for building websites. It includes a routing library, libraries for writing model objects, views, and controllers, as well as a library for working with databases, along with a whole lot of other libraries. Each of the constituent parts of Rails is a library (i.e., a useful tool for accomplishing something specific) whereas Rails as a framework is a collection of libraries for accomplishing more generalized goals (i.e., building an entire database-backed web application).

Lukasz Walczak
Lukasz Walczak
6,620 Points

Got ya!

Thanks for taking time to answer my question!

Have a lovely day!