473,413 Members | 2,043 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Do plugins give new functionality or different functionality?

When you create a system that takes "plugins," does that mean that
your plugins give new additional methods that were not there in the
original plugin interface previously or does it only mean that I have
a set of interfaces that must be implemented and those new
implementations are my new functionality?

For example, if I have an IMath interface that has method signatures
that are called add and subtract, take two numbers, you get the idea,
does that mean that if I create a plugin that uses IMath, I only will
be creating implementations of add and subtract? If I created a
multiply and divide method, alongside my necessary add and subtract,
in my plugin is that now not a plugin but something else? Is that
just inheritance without the notion of plugin architecture, extension
rather than expected implementation?

Just trying to understand the fundementals. Thank you.
Aug 29 '08 #1
3 961
jmDesktop wrote:
When you create a system that takes "plugins," does that mean that
your plugins give new additional methods that were not there in the
original plugin interface previously or does it only mean that I have
a set of interfaces that must be implemented and those new
implementations are my new functionality?

For example, if I have an IMath interface that has method signatures
that are called add and subtract, take two numbers, you get the idea,
does that mean that if I create a plugin that uses IMath, I only will
be creating implementations of add and subtract? If I created a
multiply and divide method, alongside my necessary add and subtract,
in my plugin is that now not a plugin but something else? Is that
just inheritance without the notion of plugin architecture, extension
rather than expected implementation?

Just trying to understand the fundementals. Thank you.
The notion of a plugin is that it's something that you plug into an
existing system, which the system is aware of and can use in some way.

Thus, you have to use the means of interacting with the system that the
system provides for plugins. If you add something that the system is not
aware of, it can't use it.

--
Göran Andersson
_____
http://www.guffa.com
Aug 30 '08 #2
On Aug 30, 7:58*am, Göran Andersson <gu...@guffa.comwrote:
jmDesktop wrote:
When you create a system that takes "plugins," does that mean that
your plugins give new additional methods that were not there in the
original plugin interface previously or does it only mean that I have
a set of interfaces that must be implemented and those new
implementations are my new functionality?
For example, if I have an IMath interface that has method signatures
that are called add and subtract, take two numbers, you get the idea,
does that mean that if I create a plugin that uses IMath, I only will
be creating implementations of add and subtract? *If I created a
multiply and divide method, alongside my necessary add and subtract,
in my plugin is that now not a plugin but something else? *Is that
just inheritance without the notion of plugin architecture, extension
rather than expected implementation?
Just trying to understand the fundementals. *Thank you.

The notion of a plugin is that it's something that you plug into an
existing system, which the system is aware of and can use in some way.

Thus, you have to use the means of interacting with the system that the
system provides for plugins. If you add something that the system is not
aware of, it can't use it.

--
Göran Andersson
_____http://www.guffa.com- Hide quoted text -

- Show quoted text -
So with my math example above, what am I describing? A plugin or an
extension? When I see something like wordpress and tons of plugins,
that makes me think that plugins provide something new the original
designers didn't think of.
Aug 30 '08 #3
jmDesktop wrote:
So with my math example above, what am I describing? A plugin or an
extension?
If you add methods that is not in the interface, it's not a plugin, as
the system using the interface has no way of calling the methods (short
of using reflection).
When I see something like wordpress and tons of plugins,
that makes me think that plugins provide something new the original
designers didn't think of.
Yes, but the plugins still do it within the environment that the
designers expose to the plugins.

--
Göran Andersson
_____
http://www.guffa.com
Aug 30 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Donald Smith | last post by:
Hello, Does anyone know how to code plugins, or code run off your own program that affects another program? Example: File1.exe sends the string "Test" to File2.exe (A Completely different...
4
by: Arnaud Debaene | last post by:
Hello group. I have an app which can load "plugins" assemblies that are described in the registry (each registry entry gives the full path to the plugin ..dll file). The plugins may be anywhere...
4
by: J.Marsch | last post by:
Does anyone know of an example or a document describing how to write a plug-in for Firefox in C#? As I understand it, Firefox uses the same plug-in model as Netscape, so if perhaps a Netscape...
6
by: Pete Davis | last post by:
I'm confused about what precisely the limitations are on loading plugins in separate app domains. In all my previous apps that supported plugins, I've loaded them into the same domain as the app,...
6
by: Luis Arvayo | last post by:
I need to implement plugins in my application. That is to say, DLLs that communicate with my application data. Does someone have a link to the best explain of how to accomplish the above ? ...
1
by: dandorey1 | last post by:
I'm currently in the process of writing a realtime telephony application. I've designed it with a fairly simply plugin architecture. When I first started reading about this the general suggestion...
7
by: Laurent Navarro | last post by:
Hello, I created a software some times ago, which uses some plugins to work (which I coded also). I had problems to load those plugins as they used some classes and functions which were...
0
by: sleem | last post by:
Hi. I'm hacking up an irc bot in python using Joel Rosdahl's irclib. I want to be able to add plugins to my bot, without having to restart it. In specific, I would have a directory called...
7
by: Chris | last post by:
Hi, first of all: sorry if this is not a pure C++ question, it is somewhat OS-specific but I think it fits here best. I have a base system with capabilities for loading plugings. Plugins...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.