F
Fily Salas
Hi,
I=E2=80=99m currently reading the book called =E2=80=9CLearn to Program=E2=
=80=9D and I=E2=80=99m excited
to see a language like Ruby with a clear syntax and probably easier to
understand even for a newbie like me who have very little programming
experience, in fact I already go stocked I would like someone to help me
understand this.
In chapter 11 (Reading and Writing, Saving and Loading,=E2=80=A6) the aut=
hor
demonstrates how you can save the output of your programs and I started
wondering when and why you would need to save the output of a program?
I know its probably too early to ask this kind of questions but I really
started wondering since he started talking about YAML which apparently
can be used in multiple languages and I'm assuming this is an important
part of programming?
Can someone be so kind and explain me when and why you would need YAML?
Is this a common practice when writing a program where you dont have
access to a database and which requires little data management?
This is some code sample, this actually creates a file called
ListerQuote.txt and saves the output string.
Sorry if my question doesn't make too much sense but I'm coming from a
web development world with only some knowledge in Actionscript 3.0,
Javascript, CSS and HTML.
Thanks a lot!
-- =
Posted via http://www.ruby-forum.com/.=
I=E2=80=99m currently reading the book called =E2=80=9CLearn to Program=E2=
=80=9D and I=E2=80=99m excited
to see a language like Ruby with a clear syntax and probably easier to
understand even for a newbie like me who have very little programming
experience, in fact I already go stocked I would like someone to help me
understand this.
In chapter 11 (Reading and Writing, Saving and Loading,=E2=80=A6) the aut=
hor
demonstrates how you can save the output of your programs and I started
wondering when and why you would need to save the output of a program?
I know its probably too early to ask this kind of questions but I really
started wondering since he started talking about YAML which apparently
can be used in multiple languages and I'm assuming this is an important
part of programming?
Can someone be so kind and explain me when and why you would need YAML?
Is this a common practice when writing a program where you dont have
access to a database and which requires little data management?
This is some code sample, this actually creates a file called
ListerQuote.txt and saves the output string.
Code:
filename =3D 'ListerQuote.txt'
test_string =3D 'I promise that Iend valid
swear absolutely that ' + 'I will never mention gazpacho soup again.'
File.open filename, 'w' do |f|
f.write test_string
end
read_string =3D File.read filename
puts(read_string =3D=3D test_string)
Sorry if my question doesn't make too much sense but I'm coming from a
web development world with only some knowledge in Actionscript 3.0,
Javascript, CSS and HTML.
Thanks a lot!
-- =
Posted via http://www.ruby-forum.com/.=