Oliver Andrich
12/21/2005 6:23:00 PM
Hi!
Tolga schrieb:
> One or two weeks ago, I tried Python and loved it. But I also hearing
> ineteresting things about Ruby nowadays. Which language should I use?
> Oh, yes, this question looks somewhat silly, this is a Ruby group and
> people will tend to give an automatic "Ruby" reply. But as far as I
> see, Ruby (and Python) has a intellectual community. So, I hope that I
> will get logical explanations rather than "holigan" cries.
Well, I have been using Python a lot for a long time, and I guess I will
continue to use it in some areas. But recently I gave up my prefudices
about Ruby a view weeks ago. I resisted to use it, cause I thought with
Java and Python I was perfectly equipped for the tasks I have to deal
with. But I kept reading about the fun using ruby, the joy you
experience and the freedom.
Then I decided to redo a web app developed by a contractor of my
company. I looked into the avaiable stuff for my usual programming
languages, but was disappointed one way or another. So, I am mostly a
Ruby learner/new user who was intrigued by Rails. :) But during the last
weeks I did less with Rails but with Ruby, cause I had a lot of fun with
it and some Java/Python tools I have been using, have been reimplemented
in Ruby for fun and to learn it.
> 1. I am not a computer scientist.
Well, then Ruby and Python are good choices.
> 2. I AM interested in artificial intelligence and this is the major
> reason for me to learn a programming language.
> 3. I am familiar, but not experienced, in BASIC, C/C++, Java, Prolog
> and Lisp.
As I have been doing a lot computational linguistics and agent oriented
programming, I would say that you are already perfectly equipped for
this. :)
> 5. Nice GUIs always attract me. It is not mandatory but if Ruby can
> provide me this (better than Python) I may immediately run to Ruby.
Well, I would say, the toolkits you can access are almost the same for
both languages.
> 6. And finally, what is "Rails"? Do I have to learn it if I dive into
> Ruby? Does it necessary for only web?
You said, you won'T do web programming, so rails is not of interest to
you. But ActiveRecord can be interesting as an ORM.
Didn't give you much insight so far, did it? :) Well, I might read
offensive, but in my eyes you haven't asked the right questions, cause
both Python und Ruby will satisfy you based on your questions. My
decision to finally learn Ruby and enjoy using it, are based on only one
thing - the way to express myself and my ideas in the language. I have
been using and loving Python for its clarity in syntax, design and
general appeal. But a lot of this appeal depends on the "there is one
way to do something"-mentality. Once I loved this, cause it opened my
eyes after a long dark age using Perl and C. :)
But it got me a little bit frustrated/bored during the last years to be
honest, and I have been always peeking at the Perl times with a lot of
fancy, compact and creative code. And after my first steps with Ruby I
discovered, that the clean appeal and clarity of Python can be combined
with a artful expression of thoughts in Ruby.
So, my sole point in this is, that Ruby and Python compare quite well.
Each offers some unique features, that the other implements in a
different way, but basically they are more or less equal. But I give you
one advice. Look into both. Spend a weekend with Python and learn it a
little. Do the same with Ruby. And at the end, compare them and choose
the one where you could express your ideas best with. And best means in
my eyes, the way the looks most natural to you. I won't give you the
advice to use Python or to use Ruby, cause I can't decide this for you,
cause I don't know you enough for that.
Best regards,
Oliver
P.S.: Hopefully it is comprehensible what I mean. I am not an native
english speaker, so I have some difficulties to express such things in
english. :)