Python to Ruby Tutorial (need collborators)

Hello all,
I am a Python programmer and a Ruby Nuby. I have not found a guide
available for Python programmers wishing to learn Ruby. I know Python
and would like to write a tut so future people in my position can make
the change easier.

Would anybody who knows the Ruby language care to get involved in this
project?

I want to set up some examples like -- How do you handle situations in
Ruby where you would use a list comprehension in Python? for example
to iterate over a container selecting the items that pass a test [obj
for obj in list if obj.attribute == this] ,etc, etc...

This would help to break the ice.

some_array.select{|item| item>5}

For example

Why not make it bidirectional? So good for ruby programmers learning python too? I'd be interested in that.

···

Sent from my iPhone

On 01/02/2009, at 3:19 PM, r <rt8396@gmail.com> wrote:

Hello all,
I am a Python programmer and a Ruby Nuby. I have not found a guide
available for Python programmers wishing to learn Ruby. I know Python
and would like to write a tut so future people in my position can make
the change easier.

Would anybody who knows the Ruby language care to get involved in this
project?

I want to set up some examples like -- How do you handle situations in
Ruby where you would use a list comprehension in Python? for example
to iterate over a container selecting the items that pass a test [obj
for obj in list if obj.attribute == this] ,etc, etc...

This would help to break the ice.

Hello,
there is something on
http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-python/

The german version seems to be more detailed:
http://www.ruby-lang.org/de/documentation/ruby-from-other-languages/to-ruby-from-python/

Regards,
Tammo

P.S. If this message comes several times. My news-Views crashes while
sending the message.

r wrote:

···

Hello all,
I am a Python programmer and a Ruby Nuby. I have not found a guide
available for Python programmers wishing to learn Ruby. I know Python
and would like to write a tut so future people in my position can make
the change easier.

Would anybody who knows the Ruby language care to get involved in this
project?

I want to set up some examples like -- How do you handle situations in
Ruby where you would use a list comprehension in Python? for example
to iterate over a container selecting the items that pass a test [obj
for obj in list if obj.attribute == this] ,etc, etc...

This would help to break the ice.

Absolutely! Ruby<->Python.

As you know quite a bit of bad blood exists between the two languages.
This imbalance exists from a misunderstanding and/or lack of knowledge
between the other. We could really do something good here. Let's do
some talking off list and see what we can come up with! feel free to
contact me.

···

On Jan 31, 10:26 pm, Julian Leviston <jul...@coretech.net.au> wrote:

some_array.select{|item| item>5}
Why not make it bidirectional? So good for ruby programmers learning
python too? I'd be interested in that.

+1!

Regards,
Yaser

···

On Sun, Feb 1, 2009 at 7:26 AM, Julian Leviston <julian@coretech.net.au>wrote:

Why not make it bidirectional? So good for ruby programmers learning python
too? I'd be interested in that.

Bad blood? Python is one of the few languages I can pick on without feeling like I'm in a battle of wits with an unarmed person. I think you will find that a large number of Rubyists think highly of it.

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.

···

On Sun, 1 Feb 2009, r wrote:

As you know quite a bit of bad blood exists between the two languages.
This imbalance exists from a misunderstanding and/or lack of knowledge
between the other. We could really do something good here. Let's do
some talking off list and see what we can come up with! feel free to
contact me.

r wrote:

As you know quite a bit of bad blood exists between the two languages.

Completely false.

There are a few people who like making inflammatory posts, that's all. It does not reflect how the majority of users of each language feel about the other.

···

--
James Britt

www.happycamperstudios.com - Wicked Cool Coding
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff

Quoting Matt Lawrence <matt@technoronin.com>:

···

On Sun, 1 Feb 2009, r wrote:

As you know quite a bit of bad blood exists between the two languages.
This imbalance exists from a misunderstanding and/or lack of knowledge
between the other. We could really do something good here. Let's do
some talking off list and see what we can come up with! feel free to
contact me.

Bad blood? Python is one of the few languages I can pick on without
feeling like I'm in a battle of wits with an unarmed person. I think
you will find that a large number of Rubyists think highly of it.

-- Matt
It's not what I know that counts.
It's what I can remember in time to use.

I have no experience with Python, but what I've seen looks OK. I've never had a need or desire to learn it.

--
M. Edward (Ed) Borasky

I've never met a happy clam. In fact, most of them were pretty steamed.

Matt Lawrence wrote:

Bad blood? Python is one of the few languages I can pick on without feeling like I'm in a battle of wits with an unarmed person. I think you will find that a large number of Rubyists think highly of it.

+1

Excellent way to damn with faint praise!!

r wrote:

As you know quite a bit of bad blood exists between the two languages.

Completely false.

Agreed. However Python seems to stand in my way. But that might be my
fault. Maybe working with someone who knows Python well would help me
to like it better. Thus I am quite interested.
Python really saved my day once or twice as a sysadmin, but I did
never fall in love with it.
Anyway I am quite interested in contributing.

There are a few people who like making inflammatory posts, that's all. It
does not reflect how the majority of users of each language feel about the
other.

A question James, did _we_? I do not really recall. Did _they_? I do
not really care ;).

Cheers
Robert

···

On Sun, Feb 1, 2009 at 6:45 AM, James Britt <james.britt@gmail.com> wrote:

--
It is change, continuing change, inevitable change, that is the
dominant factor in society today. No sensible decision can be made any
longer without taking into account not only the world as it is, but
the world as it will be ... ~ Isaac Asimov

I have no experience with Python, but what I've seen looks OK. I've never had a need or desire to learn it.

I have >2 years flight time with Python, and I try very hard not to add to the "bad blood" in these forums. Sometimes...

Oh crap, i started a frost war!!! :smiley:

···

On Feb 1, 12:05 am, Phlip <phlip2...@gmail.com> wrote:

OK!, OK! no bad blood then. I was wrong. Don't beat me to death with a
wet noodle here. :slight_smile: We need to focus on the goal, and that is writing
a bidirectional Ruby<->Python tut.

Tammo said:

there is something on
http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/t\.\.\.

Thanks Tammo, but i want to go into more of the every-day usage
details.

Of course not, just tell us with what you want be beaten to death and
we happily will comply :wink:
But why not start, I feel that list comprehension is a great idea.
R.

···

On Sun, Feb 1, 2009 at 7:54 PM, r <rt8396@gmail.com> wrote:

OK!, OK! no bad blood then. I was wrong. Don't beat me to death with a
wet noodle here. :slight_smile:

--
It is change, continuing change, inevitable change, that is the
dominant factor in society today. No sensible decision can be made any
longer without taking into account not only the world as it is, but
the world as it will be ... ~ Isaac Asimov

How do you propose to organize this?

I'm going to go the geek route and suggest someone set up a GitHub
repo.

···

On Feb 1, 12:54 pm, r <rt8...@gmail.com> wrote:

We need to focus on the goal, and that is writing
a bidirectional Ruby<->Python tut.

--
-yossef

I was thinking a Google group, or wiki page, or google site, etc...
Any of these sound good??

···

On Feb 1, 5:05 pm, Yossef Mendelssohn <ymen...@pobox.com> wrote:

How do you propose to organize this?
I'm going to go the geek route and suggest someone set up a GitHub
repo.

I think GitHub sounds good for actual collaboration + A google group
for discussion.

-greg

···

On Mon, Feb 2, 2009 at 7:55 PM, r <rt8396@gmail.com> wrote:

On Feb 1, 5:05 pm, Yossef Mendelssohn <ymen...@pobox.com> wrote:

How do you propose to organize this?
I'm going to go the geek route and suggest someone set up a GitHub
repo.

I was thinking a Google group, or wiki page, or google site, etc...
Any of these sound good??

--
Technical Blaag at: http://blog.majesticseacreature.com
Non-tech stuff at: http://metametta.blogspot.com
"Ruby Best Practices" Book now in O'Reilly Roughcuts:
http://rubybestpractices.com

I copy that.
R.

···

On Tue, Feb 3, 2009 at 4:57 PM, Gregory Brown <gregory.t.brown@gmail.com> wrote:

I think GitHub sounds good for actual collaboration + A google group
for discussion.

--
It is change, continuing change, inevitable change, that is the
dominant factor in society today. No sensible decision can be made any
longer without taking into account not only the world as it is, but
the world as it will be ... ~ Isaac Asimov

Robert, are you trying to capitalize on my name? :smiley:

PS: A Google group sounds good to me

···

On Feb 3, 3:08 pm, Robert Dober <robert.do...@gmail.com> wrote:

On Tue, Feb 3, 2009 at 4:57 PM, Gregory Brown <gregory.t.br...@gmail.com> wrote:
> I think GitHub sounds good for actual collaboration + A google group
> for discussion.

I copy that.
R.

Let's see I have mine for 47years and 16 days, and you? :wink:
/?obert/ :wink:

···

On Sat, Feb 7, 2009 at 4:35 AM, r <rt8396@gmail.com> wrote:

On Feb 3, 3:08 pm, Robert Dober <robert.do...@gmail.com> wrote:

On Tue, Feb 3, 2009 at 4:57 PM, Gregory Brown <gregory.t.br...@gmail.com> wrote:
> I think GitHub sounds good for actual collaboration + A google group
> for discussion.

I copy that.
R.

Robert, are you trying to capitalize on my name? :smiley: