Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: XML::Simple needs to go!

by GrandFather (Saint)
on Dec 21, 2015 at 19:51 UTC ( [id://1150880]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Simple needs to go!
in thread XML::Simple needs to go!

From the documentation: "XML::Simple - An API for simple XML files" which is different than "A simple API" and is where much of the issue arises I suspect. XML::Simple is good (I understand) for configuration files where otherwise you might use .INI files or something similar.

However XML is a bad choice for configuration files anyway. In fact it's a bad choice for most things. JSON and YAML do a much better job in many of the situations where XML has been bent to fit. XML::Simple is fine in its intended role, but that role doesn't match the advertising on the box nor the expectations derived from similar boxes.

Premature optimization is the root of all job security

Replies are listed 'Best First'.
Re^4: XML::Simple needs to go!
by Preceptor (Deacon) on Dec 22, 2015 at 10:41 UTC

    Thing is - I honestly believe that even for simple XML, it's still making more complicated code than the alternatives. We've got XML for all sorts of stuff - like config and API calls - it works well enough, although I would agree that for most, JSON or YAML are better (depending on precise circumstance).

    The root of the problem I think is indeed - that people _don't_ read the doc, they just see "Simple" and install that and start hacking away

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-29 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found