F
Fritz Trapper
Where to find a description of yaml for ruby?
Where to find a description of yaml for ruby?
Phillip said:
You know, I'm beginning to hate YAML. It loooked deceivingly simple at
first. But it turns out it's quite complicated. XML is quite simple by
comparison.
You know, I'm beginning to hate YAML. It loooked deceivingly simple at
first. But it turns out it's quite complicated. XML is quite simple by
comparison.
Phillip said:See that guy in the corner? Twitching and twisting? He wrote an ANT
makefile once.
But one thing is annoying with YAML: Significant whitespace. \t or a
proper space have different meanings, as does the amount of space.
Ain't it grant that
require "yaml"
var = Object.to_yaml # or dump, if you want to write a file
another_var = YAML.load var
makes it so very easy to use? And it can be read (not necessarily
written) by humans, too.
Try reading and writing XML in just one three lines!
Albert said:You know, I'm beginning to hate YAML. It loooked deceivingly simple at
first. But it turns out it's quite complicated. XML is quite simple by
comparison.
Phillip said:But one thing is annoying with YAML: Significant whitespace. \t or a
proper space have different meanings, as does the amount of space.
Ain't it grant that
require "yaml"
var = Object.to_yaml # or dump, if you want to write a file
another_var = YAML.load var
makes it so very easy to use? And it can be read (not necessarily
written) by humans, too.
Try reading and writing XML in just one three lines!
Thats really a bad issue. After reading docs on YAML, I decided to use
it for plane data only, no structs or trees, as I wanted to.
Yes, that's very elegant and useful für simple configuration files.
Reading complex data structures expressed in well formated XML is
possible. Reading the same in YAML is at least quite difficult.
Thats really a bad issue. After reading docs on YAML, I decided to use
it for plane data only, no structs or trees, as I wanted to.
Yes, that's very elegant and useful für simple configuration files.
Reading complex data structures expressed in well formated XML is
possible. Reading the same in YAML is at least quite difficult.
Fritz said:Thats really a bad issue.
After reading docs on YAML, I decided to use
it for plane data only, no structs or trees, as I wanted to.
Yes, that's very elegant and useful für simple configuration files.
Reading complex data structures expressed in well formated XML is
possible. Reading the same in YAML is at least quite difficult.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.