Is it better to have a lot of different function names, or one function that can take a lot of arguments?
Generally, reducing the number of functions in your API is a good thing.
What do you mean by "one function that can take a lot of arguments" though? Functions shouldn't take too many distinct arguments, but it is perfectly fine for there to be many acceptable values for those arguments.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Re: Code factory
by sauoq
in thread Code factory
by Notromda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |