mercredi 8 février 2017

Design pattern to choose proper contants value

I have a set of Key and Value pairs. Based on the operating system I have to change the value of the keys. Currently I have put all the key-values in different property file and based on the operating system I load appropriate file. Wanted to know if I am doing it correctly or else is there a way to do everything in programming langauage, (not taking variables from config file). Can I mandate the coder to create all the constants similar to methods in interface.

Aucun commentaire:

Enregistrer un commentaire