Flyweight Design Pattern
Intent
It let us fit more objects into the available amount of RAM by reusing already existing similar kinds of objects after storing them. It creates new objects when There is no matching object found.
Problem
Imagine that we have a website with 50...
metwalli.hashnode.dev2 min read