extensibility

Is there a model MultiField (any way to compose db models Fields in Django)? Or why would not that be a useful concept?

血红的双手。 提交于 2019-12-01 10:11:25
问题 When building a Django application, we were exposed to (forms) MultiValueField and MultiWidget . They seem like an interesting approach to compose their respective base classes, giving more modularity. Yet, now it seems to us that the actual piece that would make those two shine bright would be a db.models.MultiField . Here is the reasoning: It seems that, when using a ModelForm, Django is enforcing a strict 1-to-1 association between a models.Field and a forms.Field. Now, with forms

Golang events: EventEmitter / dispatcher for plugin architecture

余生长醉 提交于 2019-11-30 05:05:51
In Node.js I was able to make a WordPress clone rather easily using the EventEmitter to replicate and build a hooks-system into the CMS core, which plugins could then attach to. I now need this same level of extensibility and core isolation for my CMS written in and ported to Go. Basically I have the core finished now, but in order to make it truly flexible I have to be able to insert events (hooks) and to have plugins attach to these hooks with additional functionality. I don't care about recompiling (dynamic / static linking), as long as you don't have to modify the core to load plugins -

How to load plugins in .NET?

◇◆丶佛笑我妖孽 提交于 2019-11-28 03:59:04
I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll. My question is how do I dynamically load a plugin in C#/.Net application? Zooba The following code snippet (C#) constructs an instance of any concrete classes derived from Base found in class libraries (*.dll) in the application path and stores them in a list. using System.IO; using System.Reflection; List<Base> objects = new List<Base>(); DirectoryInfo dir

How to design extensible software (plugin architecture)? [closed]

隐身守侯 提交于 2019-11-27 09:57:49
I need some resources that talk about how to design your software to be extensible, i.e. so that other people can write add-ons/plug-ins that adds functionality to it. What do you recommend? Any books out there that discuss the subject? I would prefer something that's short and to the point; a bit of theory and a bunch of concrete examples. I'm not targeting a specific language, I want to be able to understand the core idea so that I can implement it in any language. And for the same reason, I prefer not to do it using a framework that someone else built (unless the framework is not very high

How to load plugins in .NET?

▼魔方 西西 提交于 2019-11-27 00:14:47
问题 I'd like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll. My question is how do I dynamically load a plugin in C#/.Net application? 回答1: The following code snippet (C#) constructs an instance of any concrete classes derived from Base found in class libraries (*.dll) in the application path and stores them in a

Writing C# Plugin System

梦想与她 提交于 2019-11-26 19:37:17
I'm trying to write a plugin system to provide some extensibility to an application of mine so someone can write a plugin(s) for the application without touching the main application's code (and risk breaking something). I've got the base "IPlugin" interface written (atm, nothing is implemented yet) Here is how I'm loading: public static void Load() { // rawr: http://www.codeproject.com/KB/cs/c__plugin_architecture.aspx String[] pluginFiles = Directory.GetFiles(Plugins.PluginsDirectory, "*.dll"); foreach (var plugin in pluginFiles) { Type objType = null; try { //Assembly.GetExecutingAssembly()

How to design extensible software (plugin architecture)? [closed]

▼魔方 西西 提交于 2019-11-26 14:58:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I need some resources that talk about how to design your software to be extensible, i.e. so that other people can write add-ons/plug-ins that adds functionality to it. What do you recommend? Any books out there that discuss the subject? I would prefer something that's short and to

Writing C# Plugin System

拜拜、爱过 提交于 2019-11-26 08:59:14
问题 I\'m trying to write a plugin system to provide some extensibility to an application of mine so someone can write a plugin(s) for the application without touching the main application\'s code (and risk breaking something). I\'ve got the base \"IPlugin\" interface written (atm, nothing is implemented yet) Here is how I\'m loading: public static void Load() { // rawr: http://www.codeproject.com/KB/cs/c__plugin_architecture.aspx String[] pluginFiles = Directory.GetFiles(Plugins.PluginsDirectory,