How's ruby compare to it older brother python

in term of its OO features, syntax consistencies, ease of use, and their
development progress. I have not use python but heard about it quite often;
and ruby, is it mature enough to be use for developing serious application,
e.g web application as it has not many features in it yet.

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

Thanks

Hunn E. Balsiche wrote:

in term of its OO features, syntax consistencies, ease of use, and their
development progress. I have not use python but heard about it quite often;
and ruby, is it mature enough to be use for developing serious application,
e.g web application as it has not many features in it yet.

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

There was a good discussion of ruby, PHP, and web apps recently:

http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/97866?97745-98337

Hunn E. Balsiche wrote:

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

http://www.python.org/doc/Comparisons.html

Mit freundlichen Gruessen,

Peter Maas

···

Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas@mplusr.de

Hunn E. Balsiche wrote:

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

I forgot http://dada.perl.it/shootout, which is great for performance
comparisons. Source code of the tests can be viewed easily to get a
feeling for the strengths and weaknesses of the syntax as well.

Mit freundlichen Gruessen,

Peter Maas

···

Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas@mplusr.de

Hunn E. Balsiche wrote:

in term of its OO features, syntax consistencies, ease of use, and
their development progress. I have not use python but heard about it
quite often; and ruby, is it mature enough to be use for developing
serious application, e.g web application as it has not many features
in it yet.

I’ve given up on Perl for its ugly syntax and it is not the easiest
language to learn. How about PHP?

It really depends on what you’ll want to do. PHP is a great language for
getting dynamic HTML pages up and running quickly. Perl is great for
its string-handling abilities. (On my Web pages, I actually call a Perl
script from PHP precisely for this reason.)

However, both PHP and Perl can be very unwieldy for large projects. I’m
a newcomer to Python, but it seems to scale much better than the other
P-languages.

For a first tour of Python, I’ll suggest that you read the excellent
tutorial by the language’s author, Guido van Rossum:

http://www.python.org/doc/current/tut/

regards,

···


Leif Biberg Kristensen
http://solumslekt.org/
Validare necesse est

in term of its OO features, syntax consistencies, ease of use, and their
development progress.

some people here will tell you that they prefer ruby. Some on c.l.py
will prefer python.

As of python 2.3 and ruby 1.8.1 both languages are consistent, easy to
use and very powerful. Try both and make your choice.

I have not use python but heard about it quite often;
and ruby, is it mature enough to be use for developing serious application,

sure it is, see http://www.rubygarden.org/ruby?RealWorldRuby

e.g web application as it has not many features in it yet.

sure , see http://www.rubyonrails.org/show/HomePage
or http://www.navel.gr/
or http://rubycrafters.com/
or http://www.brain-tokyo.jp/research/amrita/
or http://www.spice-of-life.net/download/cgikit/index_en.html
or http://modruby.net/

And this are just the first I can thin of :slight_smile:

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

I don’t like php4 as it lacks lot of useful things.
I don’t kinow much of php5 but I don’t like much what I see.
If you do, use it :slight_smile:

···

il Mon, 26 Apr 2004 03:08:13 -0400, “Hunn E. Balsiche” hunnebal@yahoo.com ha scritto::

“Hunn E. Balsiche” hunnebal@yahoo.com wrote in message
news:c6ich0$c5mee$1@ID-205437.news.uni-berlin.de

in term of its OO features, syntax consistencies, ease of use, and their
development progress. I have not use python but heard about it quite
often;
and ruby, is it mature enough to be use for developing serious
application,
e.g web application as it has not many features in it yet.

As another poster has mentioned, Ruby is more closely related
to Perl than to Python. While I don’t use it, people I respect who
have moved to Ruby say it has a couple of real killer features;
in particular the way blocks and the pervasive use of the visitor
pattern come together change the way one writes programs for
the better.

As far as syntax is concerned, there doesn’t seem to be a
huge amount of difference. Syntax is syntax, and every language
has it’s little pecularities.

I haven’t seen enough of it to make me want to learn it, but it’s
on my list of languages to play with sometime.

John Roth

···

Thanks

Hunn E. Balsiche wrote:

in term of its OO features, syntax consistencies, ease of use, and their
development progress. I have not use python but heard about it quite often;
and ruby, is it mature enough to be use for developing serious application,
e.g web application as it has not many features in it yet.

Syntax : both Ruby and Python are pretty clean, Ruby being IMHO more
consistent and Python easier to grasp

OO : Ruby is OO all the way, and pretty close to Smalltalk. Python is
more a mix of procedural and OO with some functional stuff too.

Web : Python may have a bit more existing solutions, and a real killer
app (Zope). Now, AFAIK, Ruby has also some interesting stuff for web
developpement.

IMHO, both are really great languages. I really like the elegance of
Ruby and the ease of use of Python. So try both and pick the one that
fits you’re brain !-)

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn.

No comment…

How about PHP?

One of the dumbest ‘scripting’ language I’ve ever worked with, but still
a good solution for web developpement when you have no better (read :
Python or Ruby) choice.

Bruno

Hunn E. Balsiche wrote:

[Ruby, Python]
I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

All these suck. You guys should grow up and start programming in real
programming languages like Befunge.

Oh, and you forgot to cross post to all the other 54 comp.lang groups.

And now: Can we please never have threads like this one ever again?
We’re getting them on a twice-per-month base right now which makes these
topics get old and very uninteresting quickly.

PS: Don’t take this too personal, but all this wouldn’t have happened if
you had searched in other resources before posting here.

Regards,
Florian Gross

Would this super perl program of yours can convert the massive amount of
perl script to ruby or python?

If it could, it would be great so ruby/python programmers does not have to
learn those cryptic perl-ish syntax and the non-OOish scripting language.

Hello Peter,

Monday, April 26, 2004, 10:19:03 AM, you wrote:

Hunn E. Balsiche wrote:

I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

http://www.python.org/doc/Comparisons.html

And as usual the comparison with ruby is a broken link.

This is something that really really gives ruby a bad reputation. I’ve
never seen so many instable servers in other communities. Sometimes
rubyforge is down, RAA had recently a long non reachable period, most of the
RAA links are garbage, the mod_ruby server is down when you need it
etc, etc.

It is just the same situation as with most libraries and extensions.

I never had problems like this when searching for python or php
information.

···


Best regards,
Lothar mailto:mailinglists@scriptolutions.com

http://www.ruby-doc.org/RubyEyeForThePythonGuy.html

James

In article 108pvmgl0h7m3ea@news.supernews.com,

“Hunn E. Balsiche” hunnebal@yahoo.com wrote in message
news:c6ich0$c5mee$1@ID-205437.news.uni-berlin.de

in term of its OO features, syntax consistencies, ease of use, and their
development progress. I have not use python but heard about it quite
often;
and ruby, is it mature enough to be use for developing serious
application,
e.g web application as it has not many features in it yet.

As another poster has mentioned, Ruby is more closely related
to Perl than to Python. While I don’t use it, people I respect who
have moved to Ruby say it has a couple of real killer features;
in particular the way blocks and the pervasive use of the visitor
pattern come together change the way one writes programs for
the better.

As far as syntax is concerned, there doesn’t seem to be a
huge amount of difference. Syntax is syntax, and every language
has it’s little pecularities.

Well, there is one big difference syntactically: Python uses indentation
as syntax and Ruby doesn’t. Personally I don’t prefer Python’s
’indentation-as-syntax’ since it means that syntactically significant
pieces of my code are invisible and if the tab settings in my editor are
not the same as yours it can make it difficult to share code (or even
worse, it might look like everything is OK when we share code, but the
code which looks exactly the same to each of us, might not be depending
on how tabs are or are not expanded). It would also seem to be a pain for
cutting & pasting code as well.
However, some people really like Python’s indentation-as-syntax, so YMMV.

Your best bet is to actually use each language for a small project
so that you spend about a day with each language. You’ll find that while
on the surface both languages seem quite similar, at a deeper level they
each have a very different effect on how you think about and approach the
problem. Some people find that Ruby best fits with their brain and others find
Python a better fit. You won’t know until you try.

Phil

···

John Roth newsgroups@jhrothjr.com wrote:

I understand your frustration. I suppose these type of msgs are like
spam to you. Maybe you should treat them like spam ? I mean, spam is
here to stay and surviving in the Internet requires some ability to
accept that and develop filtering skills.

Not that I want to be Darwingish, just hoping for a better world.

Now, OTOH, maybe there is some value in blaming people, it’s only I prefer
educating.

Yours,

Jean-Hugues

···

At 04:59 27/04/2004 +0900, you wrote:

Hunn E. Balsiche wrote:

[Ruby, Python]
I’ve given up on Perl for its ugly syntax and it is not the easiest language
to learn. How about PHP?

All these suck. You guys should grow up and start programming in real
programming languages like Befunge.

Oh, and you forgot to cross post to all the other 54 comp.lang groups.

And now: Can we please never have threads like this one ever again? We’re
getting them on a twice-per-month base right now which makes these topics
get old and very uninteresting quickly.

PS: Don’t take this too personal, but all this wouldn’t have happened if
you had searched in other resources before posting here.

Regards,
Florian Gross


Web: http://hdl.handle.net/1030.37/1.1
Phone: +33 (0) 4 92 27 74 17

ùOn Mon, 26 Apr 2004 16:55:02 -0400, “Ruby Tuesdays”

···

NoSpamPlease_rubytuzdaiz@yahoo.com wrote:

Would this super perl program of yours can convert the massive amount of
perl script to ruby or python?

If it could, it would be great so ruby/python programmers does not have to
learn those cryptic perl-ish syntax and the non-OOish scripting language.

Huh?!?

Michele

This prints: Just another Perl hacker,

seek DATA,15,0 and print q… ;
END

BTW: The RAA has been upgraded, so it now can handle upto 5 dependencies, and
it keeps remembering earlier releases. Thats some ok improvements.

BTW2: It would be nice with some filtering where one could hide inactive packages.

···

On Mon, 26 Apr 2004 18:27:00 +0900 Lothar Scholz mailinglists@scriptolutions.com wrote:

This is something that really really gives ruby a bad reputation. I’ve
never seen so many instable servers in other communities. Sometimes
rubyforge is down, RAA had recently a long non reachable period, most of the
RAA links are garbage, the mod_ruby server is down when you need it
etc, etc.


Simon Strandgaard

Hello Peter,

Monday, April 26, 2004, 10:19:03 AM, you wrote:

Hunn E. Balsiche wrote:

I’ve given up on Perl for its ugly syntax and it is not the easiest
language
to learn. How about PHP?

http://www.python.org/doc/Comparisons.html

And as usual the comparison with ruby is a broken link.

Unfortunately, I’ve had a problem with a recent server move and haven’t
been able to resurrect the IOWA-based FAQ yet. Still working on it in
between my paying job and being ill all weekend. I’m sorry to have let
you and the Ruby community down, Lothar.

This is something that really really gives ruby a bad reputation. I’ve
never seen so many instable servers in other communities. Sometimes
rubyforge is down, RAA had recently a long non reachable period, most
of the
RAA links are garbage, the mod_ruby server is down when you need it
etc, etc.

Your charming attitude really motivates all of the volunteers who run
these sites to get right to work on improving them.

It is just the same situation as with most libraries and extensions.

I never had problems like this when searching for python or php
information.

There’s an obvious answer, but I’ll leave it to you to figure out.

Chad

···

On 26/4/2004, at 5:27 AM, Lothar Scholz wrote:

In article c6jg7404m@enews4.newsguy.com,
.
.
.

Your best bet is to actually use each language for a small project
so that you spend about a day with each language. You’ll find that while
on the surface both languages seem quite similar, at a deeper level they
each have a very different effect on how you think about and approach the
problem. Some people find that Ruby best fits with their brain and others find
Python a better fit. You won’t know until you try.
.
.
.
It’s not just that “You won’t know until you try” (“is it better
to have children, or join the monastery?”); it’s that you won’t
know until you try, and it’s inexpensive to try! It’s eminently
feasible to gain experience in either language with a few hours (!)
of work, as opposed to the weeks that must precede enlightenment
about, say, J2EE servers.

···

Phil Tomson ptkwt@aracnet.com wrote:

Cameron Laird claird@phaseit.net
Business: http://www.Phaseit.net

“Phil Tomson” ptkwt@aracnet.com wrote in message
news:c6jg7404m@enews4.newsguy.com

In article 108pvmgl0h7m3ea@news.supernews.com,

“Hunn E. Balsiche” hunnebal@yahoo.com wrote in message
news:c6ich0$c5mee$1@ID-205437.news.uni-berlin.de

in term of its OO features, syntax consistencies, ease of use, and
their

development progress. I have not use python but heard about it quite
often;
and ruby, is it mature enough to be use for developing serious
application,
e.g web application as it has not many features in it yet.

As another poster has mentioned, Ruby is more closely related
to Perl than to Python. While I don’t use it, people I respect who
have moved to Ruby say it has a couple of real killer features;
in particular the way blocks and the pervasive use of the visitor
pattern come together change the way one writes programs for
the better.

As far as syntax is concerned, there doesn’t seem to be a
huge amount of difference. Syntax is syntax, and every language
has it’s little pecularities.

Well, there is one big difference syntactically: Python uses indentation
as syntax and Ruby doesn’t. Personally I don’t prefer Python’s
’indentation-as-syntax’ since it means that syntactically significant
pieces of my code are invisible and if the tab settings in my editor are
not the same as yours it can make it difficult to share code (or even
worse, it might look like everything is OK when we share code, but the
code which looks exactly the same to each of us, might not be depending
on how tabs are or are not expanded). It would also seem to be a pain for
cutting & pasting code as well.

As I said in another post, indentation is the reason I learned
Python in the first place, but it’s not the reason I stay with
the language. In fact, I’ve come to the very heretical view
that the indentation sensitivity is a language design mistake.
It should be the editor’s job to handle that level of detail in
a manner that the developer finds workable.

One reason I think it’s a language design mistake is that
it’s not recursive. That is, it’s not possible to shift from
expression level indentation back to statement level
indentation without major disruptions. This is needed for
embedded blocks.

I think Ruby has a reasonable middle ground here: its use of
’end’ is fairly unobtrusive compared to, for example, C, C++,
C# or Java. Even so, I think that a reasonable programming
editor would get them out of my face while I was programming.

The tab issue is one of those relatively inconsequential things
that people seem to love to argue about: I’d rather be able to
tell the editor how I want the program formatted, and have done
with it.

···

John Roth newsgroups@jhrothjr.com wrote:

Phil

RubyForge is down sometimes (though rarely), but its a far better
repository (resource-wise) than SourceForge for Ruby projects. We have
tried to make sure the resource(s) we provide this community (for free)
meet the community’s need for a repository of projects that are
Ruby-centric, and that we (Tom mostly) are responsive to our user’s
needs. If you have something specific to discuss with us regarding
RubyForge’s usability, please let us know here:

http://rubyforge.org/tracker/?group_id=5

Thanks,

-rich

···

On Apr 26, 2004, at 5:27 AM, Lothar Scholz wrote:

rubyforge is down