in reply to Method parameters validation and inheritance
In referen to naming conventions, I have a simple rule, make it simple to read, it will be simple to program. This basically means,
Taking the example of some of your code above,
my $context = $file->open_for_reading( {} ); ## Change to ############################# my $context = $file->reading;
my $context_derived = $file_derived->open_for_reading( { 'path' => $file, 'join_longca +lls' => 1 } );
What the hell is 'join_longcalls'? For some reason it sounds like a pirate, and it is basically incomprehensible so it might was well be a pirate. Make it read like you actually write, don't make something up and hope people understand what the hell you are talking about.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Method parameters validation and inheritance
by TGI (Parson) on Sep 19, 2008 at 07:09 UTC | |
by roman (Monk) on Sep 21, 2008 at 18:41 UTC |