The Artima Developer Community
Sponsored Link

Design Forum
How design pattern can help if there are too many config items messy around

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ellery Leung

Posts: 1
Nickname: alucard
Registered: Nov, 2005

How design pattern can help if there are too many config items messy around Posted: May 11, 2009 3:24 AM
Reply to this message Reply
Advertisement
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.

Topic: Design pattern suggestion Previous Topic   Next Topic Topic: C++ way to design tree structures

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use