I
it_says_BALLS_on_your forehead
I was skimming over slashdot, and came across a somewhat heated
debate over the virtues and vices of Perl in relation to Ruby and
Python.
I checked out Python, and it seems ok. the syntax (from cursory
inspection) seems clean, and i've heard Python is very lightweight. I
don't like the fact that white space restricts the code. I read that
this poses issues with embedding Python in HTML pages.
People claim that one of the major flaws of Perl is its 'line noise'
(i think this refers to the $, @, %, etc). Personally, i like these
symbols as they describe a variable in an intuitive and simple manner.
scalars start with a symbol that looks like an 's' ($). arrays start
with a symbol that resembles an 'a' (@). hashes are represented by a
symbol which seems to relate one element to another (%). by glancing at
a variable, you can immediately tell it's type. although some would
argue that you should be able to tell a variable's type based on its
context anyway, this isn't always true, since amiguities do exist. and
while these symbols don't *perfectly* describe at-a-glance what the
variables are, they do help.
I also looked at Ruby, and that language looks very foreign to me. I
don't really know enough to comment on it, but I do know that Perl has
a much larger community that is devoted to maintaining and improving
the language. plus CPAN is a huge resource for Perl users. i don't
think Python or Ruby have anything comparable.
anyway, so what's with all the brouhaha about Python and Ruby?
debate over the virtues and vices of Perl in relation to Ruby and
Python.
I checked out Python, and it seems ok. the syntax (from cursory
inspection) seems clean, and i've heard Python is very lightweight. I
don't like the fact that white space restricts the code. I read that
this poses issues with embedding Python in HTML pages.
People claim that one of the major flaws of Perl is its 'line noise'
(i think this refers to the $, @, %, etc). Personally, i like these
symbols as they describe a variable in an intuitive and simple manner.
scalars start with a symbol that looks like an 's' ($). arrays start
with a symbol that resembles an 'a' (@). hashes are represented by a
symbol which seems to relate one element to another (%). by glancing at
a variable, you can immediately tell it's type. although some would
argue that you should be able to tell a variable's type based on its
context anyway, this isn't always true, since amiguities do exist. and
while these symbols don't *perfectly* describe at-a-glance what the
variables are, they do help.
I also looked at Ruby, and that language looks very foreign to me. I
don't really know enough to comment on it, but I do know that Perl has
a much larger community that is devoted to maintaining and improving
the language. plus CPAN is a huge resource for Perl users. i don't
think Python or Ruby have anything comparable.
anyway, so what's with all the brouhaha about Python and Ruby?