0

configuration

kchalk 2 months ago 0
Is there a pattern for configuration? We have one file that defines every option that could have been hard coded. Usually, we load this into nested dictionaries and pass it around to almost every method in the program... I want to design an object (or I guess a data structure?) to store my configuration in, but I'm new to writing code thoughtfully. What of the patterns you do you have here that are most related? What general suggestions do you have?