Learning to properly model code.

OK, I am trying to re-model my code to make it better. What should be a good structure. I am making a save/load settings. it can either be from The registry or Disk. Where I am stuck with my model is. in the SettingsRegistryController.cs should I hard code registry paths here? or should I have another singleton with those paths? what should I call that singleton? should i have actual registry functions in the registry controller or should there be another layer? im learning still… pick on me if you wish (I am easy for that and enjoy the abuse!)

ISettingsService.cs { void Save(Settings settings); Settings Load(); }

SettingsRegistryController.cs this implements the interface (Duh)


submitted by /u/Eaglescout801
[link] [comments]

Leave a Reply