[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Need examples comparing Ruby to Python
From: "Kent S." <happy () user ! com>
Date: 2004-02-23 16:24:51
Message-ID: %Gp_b.18250$ks2.15593 () bignews5 ! bellsouth ! net
[Download RAW message or body]
Even though it's nice to know about these small differences in both
languages, I think all these examples miss their target. The biggest win
I get when I use Ruby is that it allows me to program at the meta level.
As in Dave Thomas' example, Ruby allows me to do things like this
class RegionTable < Table
table "region" do
field autoinc, :reg_id, pimary_key
field int, :reg_affiliate, references(AffiliateTable)
field varchar(100), :reg_name
end
end
which basically means that I can create my own
DomainSpecificLanguage(http://martinfowler.com/bliki/DomainSpecificLanguage.html)
without leaving Ruby. I don't know much about Python but I don't think
it is that easy to do with it.
/kent
David MacQuigg wrote:
> I'm putting together a web page comparing Ruby to Python, and I need
> some good examples showing off the advantages of Ruby. I'm new to
> Ruby, so all I've been able to do so far is pick some examples from
> the Programming Ruby book, and do a Google search on "compare ruby
> python". What I've found is way out-of-date.
>
> Take a look at http://userlinux.com/cgi-bin/wiki.pl?RubyPython This
> is part of the UserLinux project, a new Linux distribution that I hope
> will pick up where Red Hat left off, and be easier to install than
> Debian. Python is our chosen "primary" scripting language, but there
> are many participants who are also interested in Ruby.
>
> Thanks for your help.
>
> -- David MacQuigg
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic