Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Refactoring: Soft-code class name in factory method

by merlyn (Sage)
on Apr 24, 2001 at 05:33 UTC ( #74927=note: print w/replies, xml ) Need Help??


in reply to Refactoring: Soft-code class name in factory method

This refactoring is hardly original thinking. It's been done in the Smalltalk world for years. If you know of an existing writeup of this refactoring for Perl, please provide a reference.
Right here, at Re: Re: Extending object you don't create.

But no surprise, since I too have hacked Smalltalk since 1981. {grin}

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Refactoring: Soft-code class name in factory method

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://74927]
help
Chatterbox?
erix .oO( that sounds Boyer-Mooreish )
[Corion]: erix: Yes, but that's mostly for skipping characters you'll never read, but this approach skips the problem of needing to load more data while looking at a half-match

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2016-12-06 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (108 votes). Check out past polls.