[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Torn in two - Pythonist

Doug Bromley

2/6/2006 12:02:00 PM

You probably get this question all the time or some version of it.
I've been hovering in this mailing list for a time just to get a feel
for the community.
I must say I'm pretty impressed. Its friendly, very active and I've
learnt a lot.

However, I'm a Pythonist and I must admit Ruby is still a little
unusual in its syntax. Am I missing out? Should I jump ship? Has
anyone else been in my position and taken the plunge by converting?

I'd be grateful for your input.

All the best.

Doug


7 Answers

Bill Kelly

2/6/2006 12:26:00 PM

0

Hi,

Welcome,

From: "Doug Bromley" <doug.bromley@gmail.com>
>
> However, I'm a Pythonist and I must admit Ruby is still a little
> unusual in its syntax. Am I missing out? Should I jump ship? Has
> anyone else been in my position and taken the plunge by converting?

It doesn't necessarily have to be a baptism. Unless your personal
beliefs dictate otherwise, you could prolly just try Ruby on the
side and see how you like it. Maybe do a ruby quiz, or pick some
small utility you've found you have a need for and see if you like
writing Ruby code. :)


Regards,

Bill




Christian Neukirchen

2/6/2006 1:32:00 PM

0

Doug Bromley <doug.bromley@gmail.com> writes:

> However, I'm a Pythonist and I must admit Ruby is still a little
> unusual in its syntax. Am I missing out?

I'm a Rubyist and I must admit Python is still a little unusual in its
syntax... ;-)

You'll get used to it, hang in there.

> All the best.
>
> Doug
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneuk...


Jules

2/6/2006 5:11:00 PM

0

Ruby and Python are very similar. There are some minor differences
(muliple inheritance/mixins, etc). The major difference, however, is
that Ruby has blocks.

Like this:

[1, 2, 3].map{|i| i * 2}
=>
[2, 4, 6]

You would probably do this with a list comprehension in Python. This is
one of the tasks of blocks in Ruby.

Another difference is that you cannot access instance variables of an
object from the outside world. All communication goes through methods.

If you compare Ruby and Python, the number of differences is relatively
low, however.

Jules

--
Posted via http://www.ruby-....


tsumeruby

2/6/2006 5:29:00 PM

0

On Tuesday 07 February 2006 02:11 am, Jules Jacobs wrote:
> Ruby and Python are very similar.

A few particular items Ruby has which Python nor Perl don't have is decent
propaganda against other languages.

http://po-ru.com/diary/ruby-p...
http://www.archive.org/details/ruby...

:)

Tsume


james_b

2/6/2006 5:50:00 PM

0

tsumeruby@tsumelabs.com wrote:
> On Tuesday 07 February 2006 02:11 am, Jules Jacobs wrote:
>
>>Ruby and Python are very similar.
>
>
> A few particular items Ruby has which Python nor Perl don't have is decent
> propaganda against other languages.
>
> http://po-ru.com/diary/ruby-p...

WARNING: Blatant $promotional content approaching!

And cooler schwag:

http://ruby...
http://ruby...shoplist.html

This might be of special interest:

http://www.cafepress.com/p...

> http://www.archive.org/details/ruby...

"You'll shoot your eye out!"

http://www.cafepress.com/ruby...
http://www.cafepress.com/ru...



--
James Britt

"A principle or axiom is of no value without the rules for applying it."
- Len Bullard


ptkwt

2/6/2006 8:13:00 PM

0

In article <288425520602060401y23a5e80dj46043592ea8106c1@mail.gmail.com>,
Doug Bromley <doug.bromley@gmail.com> wrote:
>You probably get this question all the time or some version of it.=20
>I've been hovering in this mailing list for a time just to get a feel
>for the community.
>I must say I'm pretty impressed. Its friendly, very active and I've
>learnt a lot.
>
>However, I'm a Pythonist and I must admit Ruby is still a little
>unusual in its syntax. Am I missing out? Should I jump ship? Has
>anyone else been in my position and taken the plunge by converting?
>

Don't think of it as jumping ship. Think of it as going over to check out the
other side of the catamaran.

This dynamic-language catamaran has many pontoons and you are free to move
about them. Just remember to keep your lifejacket on.

Phil

Daniel Schüle

2/6/2006 8:13:00 PM

0

Doug Bromley wrote:
> You probably get this question all the time or some version of it.
> I've been hovering in this mailing list for a time just to get a feel
> for the community.
> I must say I'm pretty impressed. Its friendly, very active and I've
> learnt a lot.
>
> However, I'm a Pythonist and I must admit Ruby is still a little
> unusual in its syntax. Am I missing out? Should I jump ship? Has
> anyone else been in my position and taken the plunge by converting?

no need to bind yourself to one, use both
one will help you to better understand the another

I can remember my first tries with Python
coming from C and C++ it took some mind bending to grasp it
as soon as I became fluent in it I did't used C++ much
though one important thing .. I learned a great deal about C++
as well by learning Python
when I tried Ruby I was used to dynamic in the language so
I didn't took much to learn it (great thanks to irb ;-)

Ruby and Python are indeed similar in many ways
some ideas are better expressed with Python others with Ruby

> I'd be grateful for your input.

don't take it too seriosly
afer all they are just tools :)

my 2 cents

--
Daniel