Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Data-driven Programming: fun with Perl, JSON, YAML, XML...

by CountZero (Bishop)
on Apr 19, 2015 at 16:48 UTC ( [id://1123971]=note: print w/replies, xml ) Need Help??


in reply to Data-driven Programming: fun with Perl, JSON, YAML, XML...

Personally, I'm a big fan of YAML, it is expressive, easy to parse, read and write, but none of that is relevant for your question. Just use the format your co-workers are most familiar with, or even use all of these formats. It wouldn't be to difficult to write a routine that can translate each format into your internal data-representation and back again into another format.

The only formats I wouldn't use are those that are directly evaled as this will have important security concerns or those that put the data into modules, again for security reasons.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found