[Haifux] [lecture proposal] Ruby

Ohad Lutzky ohad at lutzky.net
Wed Aug 27 19:09:36 MSD 2008


On Wed, Aug 27, 2008 at 2:14 PM, Shlomi Fish <shlomif at iglu.org.il> wrote:
> On Wednesday 27 August 2008, Ohad Lutzky wrote:
>> Ruby is a dynamic, open source programming language with a focus on
>> simplicity and productivity. It has an elegant syntax that is natural
>> to read and easy to write.
>>
>> Hello world in ruby is:
>>
>> print "Hello World!"
>>
>
> Actually, that will print "Hello World!" without the newline. If you want the
> newline, you need either:
>
> {{{{{{{{
> print "Hello World!\n"
> }}}}}}}}
>
> Or:
>
> {{{{{
> puts "Hello World!"
> }}}}}

That is of course, correct. Whoops :)

-- 
Man is the only animal that laughs and weeps, for he is the only
animal that is struck with the difference between what things are and
what they ought to be.
 - William Hazlitt

Ohad Lutzky



More information about the Haifux mailing list