John Maclean
4/13/2009 7:07:00 AM
2009/4/13 Dylan Evans <dylan.star@gmail.com>:
> On Mon, Apr 13, 2009 at 4:05 PM, Reg <reg@nospam.com> wrote:
>
>> On Sun, 12 Apr 2009 23:17:25 -0500, Bill Kelly <billk@cts.com> wrote:
>>
>> >
>> >
>>
>> Thanks Bill - it's all grist to the mill
>>
>> What?
> You need to type your script up in a text editor, i hear notepad is great
> for a starter. Then you need to save the file, as for example hello.rb .
> Then you need to open up a terminal window and type 'ruby hello.rb'. =A0H=
ere
> is your hello world in ruby;
>
>
> puts 'Hello, World! God help us all!'
>
>
> --
> The UNIX system has a command, nice ... in order to be nice to the other
> users. Nobody ever uses it." - Andrew S. Tanenbaum
>
I wrote a simple code generator that would create a two files; a ruby
template file and a test_the_script.rb to test the script in that
file. Who cares what editor/IDE/OS I used? </insert your fave tool>
works for you and </emacs, vim, Debian/> works for me [a] ;-). Point
is that I wrote it in ruby and say `ruby generate_new_script.rb. to
generate the two files.
With unit testing in the file " test_generate_new_script.rb" I test
the script "generate_new_script.rb", so that I can check that my
thinking was right whilst I was writing the script.
Also, my knowledge base grows at the rate that _I_ learn as I write
more productive code. I hate notes, as they are easy to write. For me
tests are a nice way of saying to myself "STFU and __code__! Stop
collecting bookmarks, STFU and..."
I would strongly suggest that you spend sometime with that url [0].
You'll learn how __you__ learn Ruby.
[a] Disclaimer: Works For Me Technolgy is copyright of Jayeola.
Anything else that works is either completely beyond me or just pure
luck.
--=20
John Maclean
07739 171 531
MSc (DIC)
Timezone: GMT