3 ms·
Great article. I'm always a bit ambivalent about assigning "hard and fast rules." In my mind, a "framework" is...a framework. Frameworks are structural artif
by ChrisMarshallNY 7y ago
Great article.
I'm always a bit ambivalent about assigning "hard and fast rules."
In my mind, a "framework" is...a framework.
Frameworks are structural artifacts. They exist in the corporeal world, as well as CyberWorld. Buildings are constructed over frameworks. Vehicles are constructed over frameworks.
I have been writing SDKs, APIs, frameworks and drivers for a long time.
<opinion type="mine">
I tend to differentiate them (in my head) like so:
DRIVER
Code/binary asset that affords a connection between two levels of a dynamic system; abstracting characteristics of the lower part of the system.
Drivers can exist at many layers; from machine-code to UI. I have written UI component drivers, as well as device drivers.
Drivers tend to be "smaller" projects than frameworks, but there's a lot of similarity between drivers and some types of frameworks.
API
The published specification that defines interaction with a code/binary asset; combined with a minimal level of exposed code to afford access to the API elements.
SDK
A code/binary asset that exists independent of an API, but which affords access to that API; often adding functionality.
I feel that an SDK can def be a framework.
FRAMEWORK
Fairly similar to what was defined. maybe a bit "looser."
This is a set of code assets (not necessarily binary, but it's possible) that can be used as a "seed" or integral component of a code application (small "a," not necessarily a complete executable application -it could be a driver, SDK, operating system or framework).
In my mind, frameworks can be complete, self-contained and closed; possibly exposing only an API as an affordance to access the assets.
Cocoa is an example.
A framework can also be completely open-ended, and unusable without components provided by the implementor.
Classic app frameworks like Qt are examples of this.
It may be open-source, or opaque.
The frameworks that I have written have been fairly large.
I feel that Drupal or WordPress can be considered frameworks, as well as things like Qt or Cocoa.
</opinion>