For plugin writers: Interplugin communication

Xlobby plugin development

What should we do if anything?

Poll ended at Wed Sep 20, 2006 5:38 pm

Ask Stevens help with issue
1
25%
Code metaplugin
1
25%
I couldn't care less
2
50%
 
Total votes : 4

For plugin writers: Interplugin communication

Postby P3rv3rt B3ar on Wed Sep 13, 2006 5:38 pm

Am i missing something? seems to me that there is not really a way to do interplugin communication... I was going to code something, but had to give up cause i couldnt use other plugin trough xlobby plugin interface.

We plugin writers really should seek solution for this... cause its just plain stupid (and against code reuse principle) that we keep implementing same stuff just because we cant utilize eachothers plugins. I can see there two aproach available to remedy situation:

I) We could collect a mob and demand Steven to beef-up the interface or else...

or,

II) We could write a meta-plugin, which could implement regular xlobby sdk interface and provide other interface (which is superset of xlobby SDK) for other plugins. Basicly metaplugin would just proxy information between plugins and xlobby, but also directly between plugins. Old plugins would work together with metaplugin right away since its plugin interface would be superset of Xlobby SDK, but also there could be possibility to Expand SDK for new plugins, for example with commands for centralized plugin management... So metaplugin could present plugins as category to xlobby user, who could turn plugins on and off or possibly update plugin (mayby from french server?) trough xlobbys interface... and mayby some other novel functions?
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Re: For plugin writers: Interplugin communication

Postby dalanik on Wed Sep 13, 2006 6:11 pm

But on the other hand, it's better to duplicate code, than to reduce total plugins size from 30Mb to 27Mb (I've 2 Gigs of RAM, OK?) and risk all sorts of problems... it would be 10x harder to debug anything if you're not sure which plugin is causing it (for ordinary users). Then you would have plugin dependencies, i.e. if you want this, you need that plugin as well (and you don't want that other plugin), so less space argument is in question.

I dunno, I think you're complicating stuff too much...

cheers,
D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby P3rv3rt B3ar on Wed Sep 13, 2006 6:17 pm

I think u missunderstanded me... Space never was the issue... But coding time and trouble...
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Postby dalanik on Wed Sep 13, 2006 7:48 pm

P3rv3rt B3ar wrote:I think u missunderstanded me... Space never was the issue... But coding time and trouble...


Aha, yea, that's true. but this could lead to different kinds of problems... what is it that u need so much from other plugins? :-)
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby P3rv3rt B3ar on Wed Sep 13, 2006 8:06 pm

dalanik wrote:
P3rv3rt B3ar wrote:I think u missunderstanded me... Space never was the issue... But coding time and trouble...


Aha, yea, that's true. but this could lead to different kinds of problems... what is it that u need so much from other plugins? :-)


What u mentioned about dependency and debugging probs is certainly true. Well probably most plugins wouldnt still use services of others thought.

Its rather irrelevant what i needed right now, (it was just current weather image from xoap plugin, cause i was working on "euroweather", skin example to demonstrate next generation enchanted cat features for xPerTs next release version, and i think it would be just plain ridicilous to code own weather plugin just because of skin demonstrating totally other features.) but i can imagine much more important occasions and ive noticed also here on board that not accessing variables of other plugins can be anoying hindrance.
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland