[Mediawiki-l] Best practices for extensions surviving MediaWiki updates?

Michael Daly michael.daly at kayakwiki.org
Thu May 1 15:31:40 UTC 2008


Daniel Barrett wrote:

> -       Stick to calling a class's public methods, rather than accessing its $mFoobar members, whenever possible
> -       Don't depend on implementation details of MW's methods, just the public interfaces
> -       Call methods on the extension's $parser parameter, rather than $wgParser, when possible

These are just proper OO practice, not specific to MW.  Good coding 
practice is good coding practice. :)

Mike






More information about the MediaWiki-l mailing list