OT: Good Programming Courses Suggestions for technique rather than language

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Sep 4 15:36:01 UTC 2009


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.

-- 
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





More information about the Legacy mailing list