Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^11: Plack Middleware aXML

by Logicus
on Oct 21, 2011 at 08:24 UTC ( #932839=note: print w/replies, xml ) Need Help??


in reply to Re^10: Plack Middleware aXML
in thread Plack Middleware aXML

>you need a strict/warnings to warn about typos

Not really, at most you need something to make sure the tags are properly formed and correctly nested, a trivial task really, but then if your not capable of typing simple meta tags accurately you probably shouldn't be programming in the first place.

The system I have makes no such checks firstly because it would slow things down unnecessarily, and secondly because if a tag is malformed the parser simply ignores it and you get graceful degradation rather than compiler errors.

The upshot of that is that it's basically impossible to prevent successful compilation by typing bad aXML in, hence the strict/warnings issue is completely mute.

Replies are listed 'Best First'.
Re^12: Plack Middleware aXML
by Anonymous Monk on Oct 21, 2011 at 09:02 UTC

    The system I have makes no such checks firstly because it would slow things down unnecessarily, and secondly because if a tag is malformed the parser simply ignores it and you get graceful degradation rather than compiler errors.

    warnings are warnings not errors, everyone needs lint

    if your not capable of typing simple meta tags accurately you probably shouldn't be programming in the first place.

    You contradict yourself

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932839]
help
Chatterbox?
[Discipulus]: me waterpolo? oh no! i'm a no sport; the tournment was for the elder son
[karlgoethebier]: good morning
[Corion]: Discipulus: Ah, so he's the one getting almost drowned all the time - waterpolo certainly is no sport for me ;)
[karlgoethebier]: Corion: buy enough coke and popcorn...
[marto]: Corion the cinema is a lot more expensive than I remember :P
Discipulus hates the smell of popcorn at cinemas..
[Corion]: marto: Yeah, most of the time, I prefer to watch stuff at home, where we can sit on the couch, order pizza and pause the movie. But for kids,...
[Corion]: ... I think the "cinema experience" is something of its own. But certainly, bringing an USB stick home is much easier ;-D

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
























    Results (348 votes). Check out past polls.