Thomas Corell wrote:
Erik Moeller wrote:
I have formulated a policy for Wikipedia
development here:
http://meta.wikipedia.org/wiki/Development_policy
Sorry to ask, but where is the discussion about that policy?
Right here! :)
Have all delelopers agreed to this policy?
Me!
Who count's as developer and had to agree to that
policy?
Well, if you don't, speak up.
Why there aren't any coding rules specified (at
leased somethin like:
no more than 78 chars/line)?
If you'd like to write up a codification of our current code style,
please do. Some of the basics:
function wfGlobalFunctionName( $notethespace, $anotherparam ) {
# <-- indent with tabs
global $wgSomeGlobalVar;
doMyStuff( $wgSomeGlobalVar, $anotherparam );
}
class SomeClass {
var $mMemberVariable;
# Use get/setters if possible
# very very short function can be on one line like this:
function getMemberVariable() { return $this->mMemberVariable; }
}
I would however counsel against the sort of cryptic local variable names
in much of the older code, or the unnecessary duplication of code that
should be refactored into functions or classes that can be shared.
Where discussions aout new features take place and
where there have to
be an archive about all this discussions?
This mailing list is archived.
And I'm sure there are other things missing.
Sometimes you get the feeling that all the beautiful rules in
wikipedia don't count a cent if they hit reality.
Bah!
-- brion vibber (brion @
pobox.com)