NeoSoft Support Forum Forum Index  Your source for Plug-Ins, sample publications, source code and more...

Source Language:
Translate to:

NeoSoft Support Forum
NeoSoft Community Support Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   SmartFeedSmartFeed   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Number of parameters into a plugin

 
Post new topic   printer-friendly view   Reply to topic    NeoSoft Support Forum Forum Index -> PlugIn Discussions
View previous topic :: View next topic  
Author Message
David de Argentina
NeoBooker


Joined: 04 Apr 2005
Posts: 930
Location: Buenos Aires, Argentina

PostPosted: Tue Feb 02, 2010 1:51 pm    Post subject: Number of parameters into a plugin Reply with quote

Hi Dave,

Are there a limit of the number of parameters for each function into a plugin?

The equate MaxActionParams setted to 10 is the limit ?

Thanks in advance,

David de Argentina
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Neosoft Support
NeoSoft Team


Joined: 31 Mar 2005
Posts: 4058
Location: Oregon, USA

PostPosted: Wed Feb 03, 2010 11:08 am    Post subject: Reply with quote

Yes, the limit is 10. However, you can combine multiple bits of information into a single compound parameter as we did with some NeoBookDBPro actions.
_________________
NeoSoft Support
Back to top
View user's profile Send private message Send e-mail Visit poster's website
carlos torres
NeoBooker


Joined: 02 May 2005
Posts: 223
Location: Pamplona, Colombia

PostPosted: Thu Feb 04, 2010 6:53 pm    Post subject: About parameters Reply with quote

Dear David

IMHO and according w/ software engeneering principles to many parameters in a module made it hard to test.

When you have a module that make a single task (cohesion) it is easy to test, you can predict some errors or discover them faster.

With 10 parameters you have the risk of a module/plugin with many other joins/links to other functions and less cohesion. With a few parameters you can avoid the 'wave effect' of any mistake it means that anrror occur in a module and spread away along the system.

regards
carlost
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    NeoSoft Support Forum Forum Index -> PlugIn Discussions All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Forum content © 2008 NeoSoft Corp. All rights reserved.