> As a noob to Ruby who was convinced to try it after reading why's
> wonderful work, i will say that i find Ruby "harder" than Python. To
> call Python a "joke of a language" is pretty harsh by the way. It is
>
> I did go and find a used copy of Learn Ruby in 21 Days and it does
> seem to be a bit easier to get through so far, but the Ruby syntax is
> a bit more work for me whereas in Python I feel like I'm writing
> pseudo code that actually works. But that's just me, your average
> newbie (or maybe to you I'm an idiot) , and it of course in no way
Thanks Marcus, I have to admit some of the comments are making me lose
my cool here. The profanity, and accusations of trolling (with
simultaneous attacks on Python) as well as my unfortunate lack of
sleep are all adding up.
Please take into account that most folks here do not look down on
Python on Python developers. We just don't care for it, finding Ruby
to be a better personal choice. Though some would express their
tastes using stronger terms ...
Of course there are some very good points in this thread too. The
matter of teaching programming to a complete newbie is no trivial
matter either way.
I honestly think things like blocks are not a trivial matter.
Why:
5.times { print "hello " }
instead of:
5 times print hello
There is so much going on in '5.times { print "hello" }'. The more
experienced may not give a second thought, but to the enquiring newbie
it's a different matter.
Sure, but this is a poor example for teaching the use of a block.
It may make more sense to introduce newbies to blocks after showing
the creation of many methods that are essentially the same, save for
some bit of loop logic. Then explain that a block can be passed in
and used in place of that loop logic, eliminating the code redundancy.
It can be hard to devise good examples and demo scenarios. Most books
and tutorials give rather trivial examples, which makes it hard to get
a sense of why one would go to much trouble to learn something. Yet
if the examples are too hard, the user gets distracted by all the
expository scaffolding needed to set up the scenario.
Examples should both demonstrate some bit of syntax as well as provide
a reasonable motivation for learning this new syntax. I tend to
believe that when people see how they can abstract common behavior
among multiple methods and simplify their code using blocks, they get
interested enough to make the extra effort to really understand them.
James
···
On Tue, 15 Feb 2005 03:07:18 +0900, Navindra Umanee <navindra@cs.mcgill.ca> wrote:
Marcus Sharp <brothermarcus@gmail.com> wrote: