| View previous topic :: View next topic |
| Author |
Message |
David de Argentina NeoBooker

Joined: 04 Apr 2005 Posts: 930 Location: Buenos Aires, Argentina
|
Posted: Tue Feb 02, 2010 1:51 pm Post subject: Number of parameters into a plugin |
|
|
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 |
|
 |
Neosoft Support NeoSoft Team
Joined: 31 Mar 2005 Posts: 4058 Location: Oregon, USA
|
Posted: Wed Feb 03, 2010 11:08 am Post subject: |
|
|
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 |
|
 |
carlos torres NeoBooker
Joined: 02 May 2005 Posts: 223 Location: Pamplona, Colombia
|
Posted: Thu Feb 04, 2010 6:53 pm Post subject: About parameters |
|
|
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 |
|
 |
|