473,796 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How should one write a plug-in interface?

How should one write a plug-in interface?

I've tossed around several ideas but rudimentary ones at best. For
example:

Plug-In-A -Plug-In-Proxy -Application

The plug-in simply hands off its information such as author,
description, functions, parameters, et cetera to the proxy -- the
application then polls the proxy at runtime.

Does this seem like a reliable method? Smart? Efficient?

Any and all help is greatly appreciated.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Sep 15 '08 #1
4 1436
-Lost wrote:
How should one write a plug-in interface?

I've tossed around several ideas but rudimentary ones at best. For
example:

Plug-In-A -Plug-In-Proxy -Application

The plug-in simply hands off its information such as author,
description, functions, parameters, et cetera to the proxy -- the
application then polls the proxy at runtime.

Does this seem like a reliable method? Smart? Efficient?

Any and all help is greatly appreciated.
There are all kinds of plugins. Exactly what you're trying to do would
be a big help.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Sep 15 '08 #2
Response to Jerry Stuckle <js*******@attg lobal.net>:
There are all kinds of plugins. Exactly what you're trying to
do would be a big help.
Terribly sorry, Jerry, I didn't think it was important. Or rather,
I'm trying to (in general) understand a good method for
implementing plug-ins so thought specifics didn't matter.

However, I'm going to spin yet another CMS. The idea is I'd like
to roll it out fairly bare bone and in the near future add on the
other features I had planned -- therefore I needed a system of
adding functionality "on-the-fly" so to speak. I just don't seem
to be able to wrap my head around it or the ideas I have come up
with seem a bit too primitive.

Right off the bat I'm thinking 2 main types of plug-ins:

1) The plug-in returns its contents to the application front-end(a
Web page) and thusly gives the user more options to choose from or
new content (like an RSS feed, photo stream, et cetera).

2) The plug-in offers entirely new functions to the application --
this is one of the ideas I was having difficulty with. How would I
make the application "self aware" giving it the ability to utilize
new functions without running them through an "init." This one is
probably for the trash bin... or I'm over thinking it entirely.

Actually, maybe I should ask: what is the best method of rolling
out an application where I can simply drop in another page of code
that interacts with the primary application without having to re-
code the primary application.

Is this still too vague? Sorry if this is a bit incoherent still.
I've got the ideas down -- sometimes I don't convey them well.

Thanks for your patience!

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Sep 15 '08 #3
-Lost wrote:
Response to Jerry Stuckle <js*******@attg lobal.net>:
>There are all kinds of plugins. Exactly what you're trying to
do would be a big help.

Terribly sorry, Jerry, I didn't think it was important. Or rather,
I'm trying to (in general) understand a good method for
implementing plug-ins so thought specifics didn't matter.

However, I'm going to spin yet another CMS. The idea is I'd like
to roll it out fairly bare bone and in the near future add on the
other features I had planned -- therefore I needed a system of
adding functionality "on-the-fly" so to speak. I just don't seem
to be able to wrap my head around it or the ideas I have come up
with seem a bit too primitive.

Right off the bat I'm thinking 2 main types of plug-ins:

1) The plug-in returns its contents to the application front-end(a
Web page) and thusly gives the user more options to choose from or
new content (like an RSS feed, photo stream, et cetera).

2) The plug-in offers entirely new functions to the application --
this is one of the ideas I was having difficulty with. How would I
make the application "self aware" giving it the ability to utilize
new functions without running them through an "init." This one is
probably for the trash bin... or I'm over thinking it entirely.

Actually, maybe I should ask: what is the best method of rolling
out an application where I can simply drop in another page of code
that interacts with the primary application without having to re-
code the primary application.

Is this still too vague? Sorry if this is a bit incoherent still.
I've got the ideas down -- sometimes I don't convey them well.

Thanks for your patience!
Yes, it's very important - there are almost as many ways of writing
plugings as there are programmers coding them. Asking which is the
"best way" is like asking which is the "best car" for you.

In a function oriented system, normally there are two ways to interact.
The application has a specific set of functions which can be called,
often at certain times. Additionally, there are specific callback
functions the application can call or files the application can include
specific times. Which functions/files are specified via functions in
the application and/or configuration files.

An object oriented system works somewhat differently. Typically there
are predefined objects in the application. The user derives new objects
from the existing ones to change functionality. The system again has
functions and/or configuration settings which allow the user to specify
the new objects to be used.

There are other ways, also. But what I would really recommend is
looking at a couple of the existing CMS's and see how their user
interface works. I suspect it will quickly dissuade you from writing
your own. Even the simplest CMS's are complicated to implement.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Sep 15 '08 #4
Response to Jerry Stuckle <js*******@attg lobal.net>:

<snip>
Yes, it's very important - there are almost as many ways of
writing plugings as there are programmers coding them. Asking
which is the "best way" is like asking which is the "best car"
for you.
Those are the kind of analogies I can get behind -- thank you.
In a function oriented system, normally there are two ways to
interact.
The application has a specific set of functions which can be
called,
often at certain times. Additionally, there are specific
callback functions the application can call or files the
application can include specific times. Which functions/files
are specified via functions in the application and/or
configuration files.

An object oriented system works somewhat differently. Typically
there are predefined objects in the application. The user
derives new objects from the existing ones to change
functionality. The system again has functions and/or
configuration settings which allow the user to specify the new
objects to be used.
MANY thanks! This is the perspective and "profession al hint" I
needed.
There are other ways, also. But what I would really recommend
is looking at a couple of the existing CMS's and see how their
user interface works. I suspect it will quickly dissuade you
from writing your own. Even the simplest CMS's are complicated
to implement.
Ugh, I did! I also decided what the heck and chose to peruse the
"how to write a WordPress plug-in" article.

I'll play the stubborn goat though and keep at it. I'll make sure
to point you to it for a critique if I ever make something of it.

Thanks for your feedback. It's most definitely appreciated.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Sep 15 '08 #5

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

Similar topics

5
7299
by: hijwel | last post by:
<script language="JavaScript"> <!-- document.write('<form name="combo"><select name="example" size="1 onChange="Draw()">'); document.write('<option value=none>Maak je keuze'); document.write('<option value=none>--------------------'); document.write('<option value="een">Trend 1'); document.write('<option value="twee">Trend 2'); document.write('<option value="drie">Trend 3'); document.write('</select>');
3
2524
by: Ike | last post by:
Can anyone discern why the following code writes the document.write() lines literally? That is, a line like document.write('<CENTER>') should write <CENTER> but instead writes the entire document.write('<CENTER>'). I must be really doing something stupid. Can anyone here illuminate me? Thanks, Ike <HTML><HEAD> <TITLE>My Applet</TITLE> </HEAD><BODY>
12
3348
by: Radek Maciaszek | last post by:
Hi It's very interesting problem. I couldn't even find any inforamtion about it on the google. I think that the best way of explain will be this simple example: <html> <body> <script language="JavaScript" type="text/javascript" src="write.js"></script>
12
2870
by: Sean | last post by:
Hi, I have the following script: ----------------------------------------------------------------------------------- <script type="text/javaScript"> <!-- document.write('<div id=hello1>Hello1</div>'); document.write('<div id=hello2 style="display:none;"><script src="test.js"><\/script></div>');
2
2047
by: Kelvin | last post by:
To all, I've got another question. Does anybody know how to write plug-ins using VC++?? Actually, my friends and I will develop a Photo enhancing system, and so we'll need some technique to allow additional packages/plugins to attach the system. (maybe need to integrate commercial plugins such as KPT6-- photoshop)
4
2240
by: Brad Markisohn | last post by:
Is there a way to determine, programmatically, when Plug-and-Play devices are connected or removed from the PC? In VB 6 I caught events from the SysInfo control, but I don't believe that this control is supported in .Net. Any suggestion? TIA Brad
11
16230
by: Vmusic | last post by:
Hi, I am trying to write out an array of string variables to Notepad. I can't get SendKeys to accept the string variable only literal quoted strings. I DO NOT want the hassle of writing to a file I DO NOT want to write to a report I DO NOT want to write to a form My user requires I write this array of string variables out to Notepad,
3
3897
by: Brett_A | last post by:
I'm trying to write data from a form using a text box (textarea) that has a return after each item. For example: email1@domain.com email2@domain.com email3@domain.com email4@domain.com I'm getting the data written to the SQL server table fine, but every item after the first is getting written with a special character
1
1994
by: diwakar09 | last post by:
hi all, could you tell me how to write plugins for mac safari how to start, i have the dll's but i don't know how to start, pls. guide me, if possible send me some links from where i can access the information thanx
8
7112
by: Mateusz Viste | last post by:
Hi, I am trying make some multimedia files playable from my website. So far, I am able to generate dynamically a new page containing the right <embed> section. However, when I load my script, it overwrites the current page. Is there any way I could load a new tab or window, and put the new content into it? Here is the script I am using right now:
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10449
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9047
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.