Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Two tips for developing with HTML::Template

by dws (Chancellor)
on Jan 07, 2003 at 20:53 UTC ( #225074=note: print w/ replies, xml ) Need Help??


in reply to Re: Two tips for developing with HTML::Template
in thread Two tips for developing with HTML::Template

How about an update detailing what, exactly, this last eval catches?

If you trace out what HTML::Template::output() does, you'll see that there are a lot of die()s sprinkled about. The eval will catch any one of them.

There's nothing cargo-cultish about catching and redirecting errors. The technique is independent of any one particular error.


Comment on Re: Re: Two tips for developing with HTML::Template
Select or Download Code
Re: Re: Re: Two tips for developing with HTML::Template
by mojotoad (Monsignor) on Jan 07, 2003 at 21:12 UTC
    There's nothing cargo-cultish about catching and redirecting errors. The technique is independent of any one particular error.

    I see your point, but I suppose it depends on the level of analysis and the type of error. "cargo cult programming", as I understand it, is when a programmer repeatedly uses a chunk of code or a technique without ever really understanding why they are doing so.

    So on one level "catching errors" might suffice as an explanation for a programmer doing what you suggest; on a deeper level, however, that explanation might not be satisfactory if the programmer has no idea where the errors originate or why. (my broad definition would even include tried and true techniques such as using stict without ever understanding the utility or purpose of its usage.)

    Anyway -- my first comment was not meant so much as critcism as it was a colorful way to express my curiousity -- when you stated that it "caught something odd once" I was interested in hearing more information about the rare beast in question.

    Matt

    P.S. If my notion of "cargo cult" is incorrect, then please feel free to ignore my cargo cultish use of the phrase "cargo cult." ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-09-18 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls