Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • So why is it, when experts in OO programming tell us things like “avoid inheritance”, “use delegation” or “especially avoid multiple inheritance”, we so often ignore them?

    The way OO is taught and conceptualised way overemphasises inheritance. Also, almost all languages have special syntax for inheritance but none whatsoever for delegation – so one has a tool to use it and one is a ritual.

  • Oh yeah, I forgot. These days I don’t do

    sub _dont_touch_me { ... }

    Instead I do

    my $dont_touch_me = sub { ... };

    If you believe more in “stay out because it’s polite not because I have a shotgun” you can substitute our for my there.