Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STL library vs JCF framework

Why is the STL considered a library, but the JCF a framework? What exactly is it in their respective designs that causes/justifies this distinction? Can you give a code example that illustrates this?

like image 932
fredoverflow Avatar asked Nov 19 '25 10:11

fredoverflow


1 Answers

Definition by Martin Fowler:

A library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.

A framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by subclassing or by plugging in your own classes. The framework's code then calls your code at these points.

More discussion can you find here: What is the difference between a framework and a library?

like image 177
CsaByte Avatar answered Nov 21 '25 22:11

CsaByte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!