Web Component Recipe Helpers
# dsc: A simple micro-library for defining and dispatching keyboard shortcuts.# url:[core]js <= github://madrobby/keymaster/keymaster.js
There is a lot of talk going on around Web Components at the moment, but this project isn't designed with Web Components in mind and so the terminology has been avoided.
What recipe is though is a:
- constistent, reusable way of definining reusable resources on the web
While we are avoiding term component, many of the principles of component design apply if you are looking to create useful, re-usable web resources. In particular good, re-usable web resources should be:
FOCUSED, which usually means SMALL. Have a well defined purpose and scope, and generally small defined surface area makes a component both easy to understand and also easy to test. This should be encouraged.
COMPOSABLE. The ability to take the component and use it in ways not envisaged (but still "correct") by the component author demonstrates good component design.