in reply to Conventions with Passing Objects to Objects
I have realised I have made an error by making object argument names _object seeing that is is against the local variable declaration
Maybe I'm dense today but I don't comprehend this statement. I see no problem with naming your object fields _foo. As long as _foo is descriptive of what the object is. About the only thing you run into is the perl convention that variable names starting with _ denotes a private variable that should not be modified
Personally I do note try to put anything in a name to denote it's type (I was scarred by early MS hungarian notation). I much prefer a descriptive name that tells me what the variable is in an overall sense than in any type of type sense (hence cgi is better than _cgi for me since I pretty much know, by convention, that cgi is going to be sometype of CGI object).
|
|---|