{"version":"1.0","type":"rich","title":"Flyweight Sample Implementation","description":"This example demonstrates the Flyweight design pattern by sharing common task properties across many task objects. The `Task` constructor stores only the unique `name` property directly, while delegating shared attributes like `project`, `priority`, `user`, and `completed` to a `Flyweight` object managed by a `FlyweightFactory`. The factory caches flyweights using a concatenated key of these shared values and exposes a `getCount` method to track the number of distinct flyweights created. The code relies on plain JavaScript object literals and factory closures, with no external visualization libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-d0e70f259fde5c5cd04f728caa0412c6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}