Tag Archives: design patterns

Strategy pattern: Transcoder example (JavaScript flavour)

This example is based on the declaration “Strategy pattern: Transcoder example“ Sources JS Bin About the code Based on as commented with generic example: TrancoderStrategy Declaration by prototype property The default behavior throw an exception in order to force subclasses to implement thesse methods

Concretes Strategies Declaration by prototype property  and Object.create()