Welcome Guest [Log In] [Register]
Viewing Single Post From: Plug-in System
SlothLikeSin
D;
[ *  *  * ]
Jory
Jun 28 2009, 11:32 AM
Oh, I do know how to solve the compatebillity issue: Upon registration, you get a username. Each code also has a "codename". Both these names are valid Javascript class/variable names. Then if I where to want to make a code called "Banner Rotator", it would be something like this:
Code:
 
Jory.BannerRotator.execute()
{
// My code here
}
That way, if somebody else wants to make a banner rotator, it would be in otherpersonsusername.BannerRotator.execute(). (FYI, execute() gets automatically called by our hypothetical system. :) )

Do note I'm not sure this exact syntax is valid in Javascript. But I'm sure there is something close enough.
I'm afraid that wouldn't solve most of the compatibility issues between certain plug-ins (unless I'm misunderstanding).

If the community were to get involved with the plug-in database, things would be a lot easier. Well, not directly involved, but by feedback or bug and incompatibility reports, they'd help maintain it as much as the team behind it.


Honestly though, if something like this were implemented, I'd like to see a standard or strict set of guidelines for how each plug-in is created. People have different styles when it comes to scripting, and a lot of them are extremely sloppy or overly complex. If a plug-in creator decided to neglect a plug-in, at least someone else would be able to support it without having to recreate it completely.
Offline Profile Quote Post
Plug-in System · ZetaBoards Discussion