[Chicago-talk] design opinions

Randal L. Schwartz merlyn at stonehenge.com
Thu Aug 12 14:27:03 CDT 2004

>>>>> "Jim" == Jim Thomason <thomasoniii at gmail.com> writes:

Jim> if ($user->can_delete($object)) {
Jim>   $object->delete();
Jim> }

Jim> and replaced it with simple:

Jim> $object->delete();

I'm of the opinion that too many calls to ->can or ->isa or "ref $x eq
'THIS'" is a good sign that the person did not get objects very well,
or a bad design.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Chicago-talk mailing list