473,378 Members | 1,479 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,378 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 960
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.