hi guys, I wanna ask about the usefulness of this decorator pattern.
Decorator pattern allows user decorate an item with different unique things.
But what if there are 800 items to decorate the main component?
That would lead to 800 subclasses under abstract decorator.
Would XML as database shine in this area?
Whats the point of having decorator pattern in the first place when
we could just use arrays and a storage for item information such as prices in XML?
Arrays can do all the things that decorator can do, and further more uses a few XML
easier to manage compare to 800 classes, although its against the concept of
“close for modification”