Tags:
create new tag
view all tags

Plugins should be objects

There should be a base class for plugins, which other plugins then inherit from.

Benefits:

  • A plugin would only override the methods it needed to.
  • The current ugliness of cloning EmptyPlugin and hacking out 90% of it would be gone
  • Plugins could inherit from other plugins, adding new functionality
  • Fewer globals

-- Contributors: MeredithLesly

Discussion

Several people agree with you. See PluginOOApi for a way to implement this in a "backward compatible" way. The patch is against Cairo, and some of the changes made in Dakar allows for a more elegant and cleaner implementation.

-- RafaelAlvarez - 24 Mar 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-03-24 - MeredithLesly
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.