How should I organize my code to make future variables change easier?
<p>I am coding a desktop project which will includes several classes, and will put many parameters in several database tables to make it easy to centralized maintenance after deployment. The problem is that these parameters might be used in these classes (it seems that this makes these classes has something been hard-coded and not generalized any more). </p>

<p>Should I try to avoid this happening? If so, how should I do it? </p>

<p>I come up with two possible solutions: 1) use function parameters to pass these parameters into the class when they are invoked (but there may be many parameters need to be passed in and several of them might have very non-generalized names. So this will still make the class not generalized). 2) use events to make all these parameters assigned only in the main Class. This will make all the class generalized and the main Class is the only place maintain all the parameters setup in the code. However, it is relatively hard to make this logic fulfilled in the code. Is this the right way to resolve this issue or is there any other better ways to resolve this issue?</p>

<p>Many thanks for your input in advance.</p>

<p>Wei </p>
