Re: Can you please give me some advice?



cmpython@xxxxxxxxx wrote:
Hello World in Ruby (and a few other languages):http://www.oreillynet.com/ruby/blog/2005/12/hello_world.html

Hello World in Python:http://python.about.com/od/gettingstarted/ss/helloworld.htm

I know nothing of Ruby, but just the fact that in Ruby the Hello World
program is

puts 'Hello, World!'

whereas the Python Hello World program is

print 'Hello, World!'

suggests to me that Python is more intuitive because the word "print"
has a meaning in English that makes sense given what you want to do,
but "puts" just doesn't. And, as someone who has been learning Python
from almost no knowledge of programming, I've found it is not too bad
in trying to keep as reasonably close to a natural language like
English
as possible.

I also think the mandatory indenting of Python is helpful in forcing
new programmers to be neat and see code blocks quickly. Plus I doubt
the Ruby community has such a large group of helpful people and
libraries
and such (but I could be wrong about that, just assuming it based on
the
fact that Python has been around longer).

On the other hand, perhaps because Ruby is newer it has been able to
freshly start with advantages learned from the difficulties of other
languages. Byung-Hee Hwang ought to go the Ruby group and see what
they are saying.

As far as English goes, Byung-Hee, you have to admit English grammar
is easy (though spelling is not so easy). That anyone can speak and
write Chinese is impressive to me, as the language looks completely
impossible! Good luck!



Errhhh..... guys...... I think .kr means Korea.... so he would speak
Korean, not Chinese


.



Relevant Pages

  • Re: Why would I learn Python over other languages?
    ... >> languages, I also came across a language called Ruby. ... comparing Python to Ruby from those of you who have ... Ruby's documentation of its libraries is much worse. ...
    (comp.lang.python)
  • Re: What do you want in a new web framework?
    ... But there are interesting things in Ruby (and Ruby 2 should take care of ... lots of warts Ruby 1.8 has) that Python could learn from. ... Lisp family of languages whereas Python's statement-based syntax is ... These two aspects of frameworks ...
    (comp.lang.python)
  • Re: a Python persons experience with Ruby
    ... But in ruby no such distinction exists. ... I'm sorry to have to insist: Python doesn't distinguish between methods ... an accessor. ... semantic equivalent in Python of your Ruby snippet is a plain attribute. ...
    (comp.lang.python)
  • Re: builtin regular expressions?
    ... Can anybody tell me the reasonwhy regular expressions are not built into ... Python like it is the case with Ruby and I believe Perl? ... puts "Title is #$1" ...
    (comp.lang.python)
  • Re: Can you please help to make decision?
    ... For all I know, I may have just made a case for learning Python first, ... even though I don't much like the language. ... I don't think ruby is ever going to be readable in that way. ... Overall, I think python's online documentation is pretty poor, but I ...
    (comp.lang.ruby)