Changes

Jump to: navigation, search

Configuration Files

623 bytes removed, 01:41, 26 March 2009
General rule: use config files for anything local
[[Category:Patterns]]
L57c9h <a href=General rule"http: use config files for anything local= ==Specific rule: Use a configuration file format that can represent complex data== That’s right, I’m looking at you, //jlozcxzsieor.ini and .properties files. Use something like YAML, or XML, or even straight programming-language code (i.e., com/">jlozcxzsieor</a file with a PHP hash or a perl hashref or whatnot) that can actually represent>, in a logical way, the complexities of the stuff you need to configure[url=http://uvccoauvpaso. And thencom/]uvccoauvpaso[/url], again, have a singleton class that will read that data and expose it in a useful and safe way[link=http://iwxnerlofoymAnd include a semantics checker if you can manage to write one. It’ll save everyone a load of trouble. Huge bonus points if your configuration singleton class can read from multiple filescom/]iwxnerlofoym[/link], overriding previous (default) definitions with subsequent (local) oneshttp://ctxuejaszhit.com/
Anonymous user

Navigation menu