Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: OO and <DATA>

by Zaxo (Archbishop)
on Aug 25, 2002 at 05:56 UTC ( [id://192645]=note: print w/replies, xml ) Need Help??


in reply to OO and <DATA>

I do think it's wrong. Your module is intended to produce an xml document. The advantage of that is independence of representation. The associated xsl transformations should depend on the xml doctype, but not be a part of the document itself.

By modularizing an xml doctype in perl you have made it highly dynamic. No need to throw that away.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: OO and <DATA>
by rattusillegitimus (Friar) on Aug 25, 2002 at 18:29 UTC

    Thanks, Zaxo. You hit me right between the eyes with a reminder of the secondary purpose of my Resume modules. The first, of course, was to be able to generate my own and my wife's resumes easily in a number of formats, and I was spending too much time worrying about making that easier and not enough thinking forward to keeping everything dynamic and configurable by anyone who might install and use the modules. I'm going to back the default stylesheet issue back out into the sample and test scripts instead.

    That being said, I also want to thank dws, trs80, and BUU for showing me how I would use the __DATA__ section in this way and the potential pitfalls thereof. I'm sure that knowledge will come in handy ;)

    -rattus
    __________
    He seemed like such a nice guy to his neighbors / Kept to himself and never bothered them with favors
    - Jefferson Airplane, "Assassin"

Log In?
Username:
Password:

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

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

    No recent polls found