For a Saas Project that I am working on (Angular/Django), we have noticed that we have many client segments. Since it's not DRY to clone our plateforme to have separate version for each segment, we have decided to create a configuration object for each project which enable us to customise the product quickly to adapt to client needs.
Problem : The problem we are facing on front is that code starts to be spaghetti since we need to execute each piece of code according to this configuration object. Now we have switch and if everywhere which makes code hard to read and to maintain.
Is theire any good practices to handle such a situation ?
Aucun commentaire:
Enregistrer un commentaire