Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Doubt about fly-weight objects.

by blazar (Canon)
on May 17, 2005 at 14:20 UTC ( [id://457825]=note: print w/replies, xml ) Need Help??


in reply to Re: Doubt about fly-weight objects.
in thread Doubt about fly-weight objects.

I do this sometimes. Usually when I want private data and the object to behave in public like its underlying blessed type (eg, keys %$obj). This can be more useful than having special key prefixes or other nonsense - but by Software Engineering standards its pretty poor form. Good for quick n' dirty stuff though ;-)
Interesting. It doesn't seem to me so atrocious after all. Fortunately perl is flexible enough that you can decide what is good and what is evil depending on the problem at hand in each particular situation.

The problem is that experienced hackers do know when they're doing something that is potentially Bad(TM), and they do on purpose - because they know what they're doing, while occasionally you can see newbies using the same techniques in a totally uninformed matter, which contributes to the spreading of bad programming techniques - what that sometimes in turn contributes to give Perl a bad name...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://457825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found