Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Python to Ruby Tutorial (need collborators)

Reply
Thread Tools

Python to Ruby Tutorial (need collborators)

 
 
r
Guest
Posts: n/a
 
      02-01-2009
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.
 
Reply With Quote
 
 
 
 
Julian Leviston
Guest
Posts: n/a
 
      02-01-2009
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 <(E-Mail Removed)> 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.
>


 
Reply With Quote
 
 
 
 
r
Guest
Posts: n/a
 
      02-01-2009
On Jan 31, 10:26*pm, Julian Leviston <(E-Mail Removed)> 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.


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.


 
Reply With Quote
 
Matt Lawrence
Guest
Posts: n/a
 
      02-01-2009
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.

 
Reply With Quote
 
James Britt
Guest
Posts: n/a
 
      02-01-2009
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

 
Reply With Quote
 
znmeb@cesmail.net
Guest
Posts: n/a
 
      02-01-2009
Quoting Matt Lawrence <(E-Mail Removed)>:

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

 
Reply With Quote
 
Phlip
Guest
Posts: n/a
 
      02-01-2009
> 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...
 
Reply With Quote
 
Phlip
Guest
Posts: n/a
 
      02-01-2009
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!!
 
Reply With Quote
 
r
Guest
Posts: n/a
 
      02-01-2009
On Feb 1, 12:05*am, Phlip <(E-Mail Removed)> wrote:

Oh crap, i started a frost war!!!
 
Reply With Quote
 
Yaser Sulaiman
Guest
Posts: n/a
 
      02-01-2009
[Note: parts of this message were removed to make it a legal post.]

On Sun, Feb 1, 2009 at 7:26 AM, Julian Leviston <(E-Mail Removed)>wrote:

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



+1!

Regards,
Yaser

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do programmers enjoy video tutorial or written tutorial ? Linuxmank Java 36 08-08-2009 09:54 AM
Tutorial or Example (or Tutorial) of Using Canvas to Produce a Plot W. Watson Python 13 09-20-2007 04:29 PM
python tutorial: popular/informative Python sites ? Fredrik Lundh Python 3 04-02-2006 10:52 PM
Tutorial for beginner/ Tutorial voor beginner Rensjuh C++ 7 09-02-2004 12:41 AM
A Byte of Python - Python Book / Tutorial Swaroop C H Python 2 03-06-2004 02:33 PM



Advertisments