Framework |
Library |
Many try to distinguish them by direction of control, a rather technical distinction:
- If it calls you, this is framework.
- If you have to call it, this is library.
Another slightly different point of view:
- Framework is a skeleton for an application.
- Library performs specific tasks for its clients.
So, I'm a fan of second definition. And although first one sounds reasonable too, I have a feeling it may not be entirely correct for all the cases.