OT: Good Programming Courses Suggestions for technique rather than language

Rajinder Yadav devguy.ca-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Sep 4 16:09:07 UTC 2009


On Fri, Sep 4, 2009 at 11:36 AM, Lennart
Sorensen<lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
> On Fri, Sep 04, 2009 at 10:10:48AM -0400, Rajinder Yadav wrote:
>> On Fri, Sep 4, 2009 at 9:55 AM, Lennart
>> Sorensen<lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
>> > On Fri, Sep 04, 2009 at 02:00:00AM -0400, Rajinder Yadav wrote:
>> >> What do you mean, you don't like Ruby's everything is an object syntax like:
>> >>
>> >>       5.times { puts "hello world!".upcase }
>> >>
>> >> ;-)
>> >
>> > OK, I had never looked at ruby before.  Now I actually have a reason to
>> > never bother.  That is just ugly.
>>
>> Like mom said, beauty is in the eye of the beholder.
>>
>> > You have to look all over the place
>> > to find out what that line is actually doing.
>>
>> Ha! I expected such a reply =) ... I find it reads left to right,
>> there is no looking around everywhere.
>> execute code block 5 times -> print some text -> in upper case.
>
> Well no, it is execute code block 5 times, take some text, upper case it,
> then print the result.  The .upcase part simply messes up the flow.

That is how I read it the first time when I was learning Ruby trying
to map my C++ skills... then after a little while, you transform into
a Ruby coder and start to read it like a sentence from left to right,
in fact you don't event notice how ugly the syntax is ;-)

> --
> Len Sorensen
> --
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>

-- 
Kind Regards,
Rajinder Yadav

May the { source } be with you !
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list