We have a product in which each client has an XML configuration file containing sets of user interface parameters and subparameters. For example, one type of user (call them A) has one set of parameters, and another type of user (B) has a different set of parameters.
The problem is that A and B share most of the parameters, although sometimes, when they have an option, one or more sub-parameters are different.
Now we get clients instead of two types of users, 30 types of users, and client configuration files are bloated with the same information that is repeated up to 30 times, creating a nightmare for maintenance for development.
In what ways would you recommend applying the DRY principle to this situation?
source
share