| bio | website | csphere.eu |
|---|---|---|
| location | Hamburg, Germany | |
| age | 29 | |
| visits | member for | 1 year, 2 months |
| seen | May 27 '12 at 16:55 | |
| stats | profile views | 3 |
PHP and SQL Development since early 2001
|
May 10 |
comment |
Why is Global State so Evil? you can also have a config object factory or config proxy object, its up to you how this is done. it makes you able to seperate configuration stuff from other parts. |
|
May 10 |
comment |
Why is Global State so Evil? you can use a config class that handles access to those settings. i think its good practise to have one and only one place where configuration settings are read from config files and / or databases while other objects fetch them from that config thing. it makes your design more clean and predictable. |