Project Modication Blues
Posted: Thu May 26, 2005 10:51 pm
Hello,
I have a common function that is used by almost all scripts in my project.
We all know that, OOP in mind, I can change the contents of this function without affecting the outside world. But what if I want to change the order and number of its arguments. Like for example, it used to accept $namestr as argument -. Eventually, I analyzed that it must also accept '$address' argument - .
If I do so, then I have to change all function calls (ei.about an hour) to whatever appropriate. This is a waste of time I guess.
In your opinion, what is the best way of dealing with this situation?
Thank you, masters, in advance.
I have a common function that is used by almost all scripts in my project.
We all know that, OOP in mind, I can change the contents of this function without affecting the outside world. But what if I want to change the order and number of its arguments. Like for example, it used to accept $namestr as argument -
Code: Select all
function foo($name){Code: Select all
function foo($namestr,$address){If I do so, then I have to change all function calls (ei.about an hour) to whatever appropriate. This is a waste of time I guess.
In your opinion, what is the best way of dealing with this situation?
Thank you, masters, in advance.