Library vs Framework (was Dr. Dobb's Python-URL!)
rafi
rafi at free.fr
Mon Aug 15 15:23:16 EDT 2005
Simon Brunning wrote:
> On 8/15/05, Rocco Moretti <roccomoretti at hotpop.com> wrote:
>
>>Which lead me to the question - what's the difference between a library
>>and a framework?
>
> If you call its code, it's a library. If it calls yours, it's a framework.
Trying to add my 2 cents (As I do not agree with the above sentence):
You build applications "on top of / using" libraries while you build
applications "in the context of" a framework.
A framework is more like a piece of swiss cheese were you fill the
holes. The framework provides an overall structure with particular rules
for its use, while the library provide basic blocks that you may
assemble in your own way (even if some constaints exist).
--
rafi
"Imagination is more important than knowledge."
(Albert Einstein)
More information about the Python-list
mailing list