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

Re^2: Two argument bless syntax

by webfiend (Vicar)
on Nov 22, 2006 at 18:14 UTC ( [id://585582]=note: print w/replies, xml ) Need Help??


in reply to Re: Two argument bless syntax
in thread Two argument bless syntax

It's cargo-cult style programming, sure. I think we need to be careful about just throwing that answer around willy-nilly, though. It was nice of you to provide a link to an article that discusses object construction, but logie17's specific question doesn't get referenced until the last couple of paragraphs.

It might be better to give a quick summary of why it's used (1: to allow object construction via an object rather than just as a class/package method; 2: "Cargo-cult" - I saw somebody else do this, so I'm doing it too even though I don't know why), why it's bad (1: construction via the object could mean a few different things, and you should avoid coding techniques that make your intention hard to fathom; 2: You shouldn't write a particular chunk of code if you don't know why you're writing it - if Billy Smith jumped off the Empire State Building, I suppose you would have to jump off the Empire State Building too), and then link to merlyn's article (for more details about object construction). It's probably a good idea to include a link explaining what cargo-cult programming is if you suspect that the questioner (or someone else reading your reply in distant years) is not familiar with the term.

So many parentheses ...

Sorry about being so pedantic. I don't think there's anything wrong about your reply, and the link is great. I just want folks to be careful that "It's cargo-cult" doesn't end up becoming a cargo-cult reply.

Replies are listed 'Best First'.
Re^3: Two argument bless syntax
by bluto (Curate) on Nov 22, 2006 at 22:13 UTC
    Sorry about being so pedantic. I don't think there's anything wrong about your reply, and the link is great. I just want folks to be careful that "It's cargo-cult" doesn't end up becoming a cargo-cult reply.

    FWIW his reply came over 20 minutes after several others that explained things in summary form, so a quick, short link was perfect at that point. If the OP wants to investigate further, great. If not, then there's no great time wasted reinventing an answer that won't be read, esp when merlyn did a good job already...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-19 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found