salient.jsPatterns
This application is designed as an evolving library of live JavaScript design pattern exemplars and real-world implementation examples.
This site is dynamically generated from loaded scripts containing the example code and meta data.
Each pattern 'page' consists of an arbitrary number of exemplars, or structural examples, sample 'real-world' implementations and supporting metadata.
The exemplars and implementations are each, in turn,
- supporting content meta-data is rendered with attribution.
- 'decompiled' and the source code is displayed in a tab of the code viewer.
- 'executed' and the results are displayed in a tab of the code viewer.
Existing exemplars and implementation scripts may be modified and the changes/results are immediately, upon browser refresh, reflected in the pattern 'page'.
New exemplars and implementations for any pattern can be added to the existing scripts and new patterns can be added by simply referencing the new script in the head of this file.
The initial set of code samples were ported, with permission, from c# example code provided by Richard Carr's excellent C# GOF Design Patterns reference.
Contributions of exemplars, implementations, diagrams and content are welcome and will be fully attributed.