What is the difference between a Library (and | vs) a Framework ?

Card Puncher Data Processing


This page explains you the difference between:

Basically, you need to look at the inversion of control principle:

  • your code invoke the library (the library plug into your code)
  • your code is invoked by the framework (the framework invokes your code and offers has a plugin/extension system for your code)


With a library, it's easy to test your code whereas within a framework, the framework should provide a test feature.


Library Vs Framework



Discover More
Card Puncher Data Processing
What is a framework ?

A framework is an application that permits to build another application: * that has extension point to run your code * generally declaratively with strong convention (you need to create files in a...
Card Puncher Data Processing
What is the Inversion of Control ?

Inversion of Control (IoC) is a design pattern that addresses a component’s: * dependency resolution (dependency injection), * configuration * lifecyle It...

Share this page:
Follow us:
Task Runner