On Jul 16, 2004, at 2:52 PM, John Siracusa wrote:
And I cringe at APIs with 50 methods that begin with set_ and 50 more that
begin with get_. I have to mentally filter out the prefix noise when trying
to look up methods based on the part that is the most relevant to the API
(e.g. "day") It's like Hungarian notation for APIs, and Hungarian notation
and Perl are an extremely poor fit for each other. (I Know, I have worked
on much too much Perl code with variables like $rarhTurnips.)
That's a documentation problem. You should be able to look things up by the attribute name, and then see the list of accessors/mutators:
=head3 day
my $day = $dt->get_day; $dt->set_day($day);
Blah blah blah
=cut
Anyway, Dave hates it, so I guess I should just be glad that there's a day()
method at all rather than a set_day() method... ;)
True enough...except for set_time_zone(), this is true, as near as I can see.
Regards,
David
smime.p7s
Description: S/MIME cryptographic signature