Posted by Ivαn Sαnchez Ortega on 01/09/06 10:54
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
windandwaves wrote:
> The reason i am using a variable is that these are easier to customise. I
> have file with standard values and then a config file that overrides any
> variable that should be customised for a particular application. Defined
> constants can only be defined once.
>
> Hope that makes sense
No. Using global variables for configuration directives do not make sense.
Ever. Using a singleton design pattern and static methods do, however.
It's not about working or not-working code: it's about modular or
non-modular code. Please keep all your config directives apart of the rest
of the variables. It may save you from some headaches.
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDwiTQ3jcQ2mg3Pc8RAkJTAJ46kyDh9QeLZFrUQkC3A9AzHBJ8BACfYRL7
4/A4xwjBWwh5fAiF0HvYvT8=
=d8jB
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|