-
May 11th, 2009, 08:55 PM
#1
How design pattern can help if there are too many config items messy around
Hi all.
There are one question on design that I want to get some help:
I just get my hand a project that, the main problem is that there are too many configurable items mess around in certain files.
I am a PHP programmer so the following will be in PHP, but I think that the principle is the same:
For example, let say the system has a file called constant.php which, I found that there are more than 400 configurable items inside (all put in a single array). Another file has config items of more than 170.
My boss and I both think that it is too complicated and it needs to be "implement some architecture", "structured" or "organized" in some way. And this is my job.
However, I do not have ideas on this. All I think is to imply a singleton pattern to group different kind of config. But I think that there are some more good way to do this and so I would like to ask for some advices from all your experts.
What would you do if you face such problem? What is the steps that I can perform to analyst this situation?
Thank you in advance for all your kind help and support.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|