Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: OO style question: how much information to hide?

by shotgunefx (Parson)
on Jun 11, 2003 at 09:25 UTC ( #264987=note: print w/replies, xml ) Need Help??


in reply to OO style question: how much information to hide?

In the HTML parsers I've written, I've always went loose for several reasons.
  1. I've seen a lot of malformed HTML.
  2. I see a lot of odd "HTMLish" tags embedded for processing / templating
  3. I've done 2. myself.
Personally, I would just make the "strictness" a method you could call so you can have it both ways (carp or croak). The other thing I've done in the parsers I've written is to allow tags to be specified 'tag' and '/tag' as well so the problem can be circumvented all together. The later fits my thinking well.

-Lee

"To be civilized is to deny one's nature."
  • Comment on Re: OO style question: how much information to hide?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://264987]
help
Chatterbox?
[LanX]: 12345678901234- 123456789012345678 901234567890123456 789012345678901234 567890123456789012 345678901234567890 123456789012345678 901234567890123456 789012345678901234 567890123456789012 345678901234567890 123456789012345678 901234567890123456 789012345678901234 567890
Discipulus NodeReaper will borg LanX?..;=)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-07-24 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (351 votes). Check out past polls.