Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Direction of Plugin System
#1
Chris,

I'm seeing many posts here of many wants for plugins. I know that plugins can help both developers and end users at the same time, but what should the plugins be geared more towards?

Just asking because we have a lot of developers here that are downloading the software. I don't recall seeing many end users on the forums. So it kinda brings up a crossroads in my mind. Where does the plugin development need to go initially? To whom should it benefit more?

I'm sure it depends more on the plugin type, but I hope you understand my comments.

Thanks.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#2
I just reread and want to give an example.

I saw a post about adding a Google map plugin. This is great.
However, should the plugin be developed more towards the developer, or dumbed down to the end user?
If for developers, more functional. If for end users, easy to use, less complicated = less functionality.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#3
I agree that most of us are developers, but while we are the ones downloading and installing the software, the eventual end-user will still be less savvy than us in terms of web know-how.

How you word and develop the UI of your plugin should always be clear and concise anyway no matter who is the end-user...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#4
I understand.

Currently GS is being embraced by developers, but will there be a push to market to the end user?
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#5
Maybe... but then again everything goes hand-in-hand: more developers = more end-users knowing, using and understanding GS
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#6
An issue i've just come across is that because the plugin system has not been built using classes, the plugins are now at a large risk of breaking eachother.

If you think that a user installs 10 plugins.

One of those plugins has:

getData();

Another plugin has

getData();

They cause issues as the previous function has 'been declaired' (it shows up in debug mode) now i'm assuming this could become a larger problem down the line. How can this issue be dealt with?
Nothing is too difficult... anything is possible.
'But you tried, and you failed.. the important thing? never try'
Reply
#7
Sample error:

Fatal error: Cannot redeclare function_name() (previously declared in /Applications/MAMP/htdocs/jmhconsulting.com.au/plugins/simple-analytics.php:30) in /Applications/MAMP/htdocs/jmhconsulting.com.au/plugins/simple-blog.php on line 68
Nothing is too difficult... anything is possible.
'But you tried, and you failed.. the important thing? never try'
Reply
#8
a: apply your plugin name to the functions:
Code:
twitter_get_data(); and maps_get_data();
b:
Code:
if(!function_exists('<my function name>')){ <my function> }
c:
Quote:build it as a class, which is completely doable.

A is how I do functions on NinkoBB to prevent collisions from happening.
http://nijikokun.com
random stuff. idk.
Reply
#9
Nijikokun Wrote:apply your plugin name to the functions is how I do functions on NinkoBB to prevent collisions from happening.
Pretty close to what I’m doing in a current plugin I’m developing too. I choose to prefix the function names with zegnat-, if anyone is going to use that they probably did not use it accidentally.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#10
I actually tried writing my plugin as a class, but was receiving errors when attempting to use the class methods in the hooks.
Nothing is too difficult... anything is possible.
'But you tried, and you failed.. the important thing? never try'
Reply




Users browsing this thread: 1 Guest(s)