[wp-hackers] Re: 2.0.10 and 2.1.3 Release Candidates

Peter Westwood peter.westwood at ftwr.co.uk
Sat Mar 17 19:08:23 GMT 2007

Alex King wrote:
> On Mar 17, 2007, at 8:37 AM, Peter Westwood wrote:
>> I disagree.
>> This leads to one big function which becomes harder to maintain.
> Why would it be harder to maintain?

Because you are adding an unnecessary level of complexity to writing the 
function - which is just going to be a switch statement containing the 
code from the other functions.

Also, these functions are often called and so we should keep the 
argument list small.

It also doesn't mean that the user is going to pick the correct argument 
to pass to the functions either!

Peter Westwood

More information about the wp-hackers mailing list