Professional Web Applications Themes

[PYTHON] YAPVRA (Yet Another Python vs. Ruby Article) - Ruby

Interesting blog post from a Pythonista on "Linguistic Simplicity," and why Ruby fails to pass muster. [url]http://toulouse.amber.org/archives/2003/08/21/linguistic_simplicity.html[/url] And, please, this is not an invitation to a flame war or general grousing. Read it to see how others perceive Ruby. If you think the author has misrepresented something, post a polite comment to his blog. (And if you think the preceding comments were obvious, then my apologies.) James...

  1. #1

    Default [PYTHON] YAPVRA (Yet Another Python vs. Ruby Article)

    Interesting blog post from a Pythonista on "Linguistic Simplicity," and
    why Ruby fails to pass muster.

    [url]http://toulouse.amber.org/archives/2003/08/21/linguistic_simplicity.html[/url]

    And, please, this is not an invitation to a flame war or general
    grousing. Read it to see how others perceive Ruby. If you think the
    author has misrepresented something, post a polite comment to his blog.

    (And if you think the preceding comments were obvious, then my apologies.)

    James





    james_b Guest

  2. #2

    Default Re: [PYTHON] YAPVRA (Yet Another Python vs. Ruby Article)

    On Saturday, August 23, 2003, at 02:04 PM, james_b wrote:
    > Interesting blog post from a Pythonista on "Linguistic Simplicity,"
    > and why Ruby fails to pass muster.
    Python users are always harping on how in Python code looks the same,
    no matter who writes it, because a fundamental design decision for
    Python is that there should only be one way of doing something. But
    that simply isn't true, even with the most basic of features, "import"
    >>> import fibo
    >>> fibo.fib(1000)
    1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
    >>> from fibo import fib
    >>> fib(500)
    1 1 2 3 5 8 13 21 34 55 89 144 233 377
    >>> import fibo as foobar
    >>> foobar.fib(1000)
    1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
    >>> from fibo import fib as bif
    >>> bif(200)
    1 1 2 3 5 8 13 21 34 55 89 144

    As for the rest of his entry, it's mostly flamebait. Perhaps
    unintentional, but he misrepresents certain aspects of Ruby. He
    prefers the syntax of Python to that of Ruby. Fine. He doesn't get
    that conditional expressions could be designed to return values. Fine.
    My reasons for disliking Python are mostly personal too. I happen not
    to like too many underscores. I dislike explicitly passing "self" to
    methods in a supposedly object-oriented language. (Incidentally, the
    same thing I dislike about Perl's OO syntax, and Ruby is supposed to be
    the one that's more Perl-like).

    The most common complaint I've heard about Ruby from Python people is
    that there's more than one way of doing something, and there are
    strange shortcuts and Perl like special variables around. There's
    something they don't seem to realize (and what you wouldn't realize
    unless you spent some time with Ruby). Although there's more than one
    way to do things, there's the path of least resistance, and everybody
    seems to follow it. Sure, $_ exists, but nobody seems to use it,
    because the places it is mostly used in Perl are done with iterators in
    Ruby.

    What's funny is that from his page he links to a post he made in
    comp.lang.python about his experiences with Ruby, and that post was
    made in response to a post by "Brandon J. Van Every", asking "What's
    ***TOTALLY COMPELLING*** about Ruby over Python?"

    Ben


    Ben Giddings Guest

Similar Threads

  1. ruby from python
    By Adriano Volpones in forum Ruby
    Replies: 0
    Last Post: October 20th, 09:53 AM
  2. Ruby vs Python?
    By Daniel Carrera in forum Ruby
    Replies: 8
    Last Post: September 17th, 04:32 PM
  3. OOP flavours - was Python vs. Ruby
    By Ryan Pavlik in forum Ruby
    Replies: 5
    Last Post: September 9th, 09:05 AM
  4. Python vs. Ruby
    By Fred in forum Ruby
    Replies: 39
    Last Post: September 3rd, 06:30 PM
  5. Why did you switch from Python to Ruby?
    By Ged Byrne in forum Ruby
    Replies: 49
    Last Post: August 26th, 05:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139