Talk:Computer Science Design Patterns/Flyweight

My question is: what would an example of code that does not utilize this pattern look like (in this specific context)?
It's not exactly explicit to me how this design pattern solves the problem because I haven't even visualized the "problem" (in this specific context) yet. I guess what I'm asking for is essentially a before and after look at working code that has been updated to use the flyweight pattern to more clearly see the benefits of the pattern comparatively and in context. 189.26.179.157 (discuss) 14:17, 17 February 2014 (UTC)
 * There is no standard bad code. However, a bad code would be a code where you create as many objects as you use. In this case, each time you use a new object, you create it and lots of data are duplicate and the memory overheat. This would be a bad example.
 * PS: This page is about to be updated. Meanwhile, I recommend you to read the Wikipedia article. Ftiercel (discuss • contribs) 19:42, 19 February 2014 (UTC)
 * PS: This page is about to be updated. Meanwhile, I recommend you to read the Wikipedia article. Ftiercel (discuss • contribs) 19:42, 19 February 2014 (UTC)