02 Sep 2008
Constants should always be all-uppercase, with underscores to separate words. Prefix constant names with the uppercased name of the class/module they are used in.
Constants should always be all-uppercase, with underscores to separate words. Prefix constant names with the uppercased name of the class/module they are used in.
A change to current usage.
This is not what we currently do. We have lowercase constants. Whether we should change is up for grabs. It makes more constants stand out more when they are all caps. But I don't want to go through and change all the constants already in use.
We're on our way.
Most of the constants have already been changed in Lunar (the branch that's on it's way to becoming Zoop 2) and Lunar branches. So you don't have to do it :)
new config system
Zoop 2.0 will no longer use the constants as a way to configure the app, the new system is already in place and working well. There will still be a handful of constants in a config bootstrap file. These constants have been uppercased already.
----------------------------------
Co-Author of Zoop Framework
http://spf13.com
When 2.0 is released...
We should prob'ly update this section to reflect a preference for the new Config system, and that defines should be avoided.