I have been waiting for something like this! Thanks!<br><br><div class="gmail_quote">On Dec 8, 2007 6:08 AM, Steve Howell <<a href="mailto:showell30@yahoo.com">showell30@yahoo.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Python is my favorite programming language. I've used<br>it as my primary language for about six years now,<br>including four years of using it full-time in my day<br>job. Three months ago I decided to take a position
<br>with a team that does a lot of things very well, but<br>they don't use Python. We use Ruby instead. I'd like<br>to share my observations about Ruby, because I think<br>they say important things about Python, which has been
<br>my frame of reference.<br><br>First of all, I actually enjoy programming in Ruby.<br>Although I'm still fairly early on the learning curve,<br>I feel like I've achieved basic fluency, and it<br>generally stays out of the way.
<br><br>(A quick disclaimer is that some of the observations I<br>make about Ruby may simply reflect my ignorance about<br>the language. I'm still learning it.)<br><br>The thing that I like least about Ruby is its<br>
"require" mechanism. Basically, when you do "require"<br>in Ruby, it sort of pollutes your namespace. I much<br>prefer Python's explicitness.<br><br>Some surprising things that I like about Ruby:
<br><br> 1) It has the Perlish natural language syntax of<br>"raise 'foo' if condition." I never missed having<br>that syntax in Python, but now that I have it in Ruby,<br>I use it quite often.<br><br>
2) On a general note, Ruby is enough like Python<br>that it doesn't bend my brain.<br><br> 3) I actually like being able to omit parentheses in<br>method definitions and method calls. In Ruby you can<br>express "add(3,5,7)" as both "add(3,5,7)" and "add 3,
<br>5, 7." The latter syntax is obviously more error<br>prone, but I don't think I've ever actually gotten bit<br>by it, and the code appears more clean to me.<br><br> 4) Ruby forces you to explicitly make attributes for
<br>instance variables. At first I found this clumsy, but<br>I've gotten used to it, and I actually kind of like it<br>in certain circumstances.<br><br>What I miss about Python:<br><br> 1) I like the fact that Python's syntax for passing
<br>around methods is very natural. Ruby's syntax is much<br>more clumsy.<br><br> 2) I miss indentation. I get bitten by kEnd in Ruby<br>all the time.<br><br> 3) I miss Python's maturity. Just to give a small<br>
example, Python's interpreter gives more readable<br>syntax error messages.<br><br>Those are the things that jump out for me. I'm<br>curious to hear what other people have learned about<br>Python after maybe going away from it for a while.
<br><div class="WgoR0d"><br><br><br><br> ____________________________________________________________________________________<br>Be a better friend, newshound, and<br>know-it-all with Yahoo! Mobile. Try it now. <a href="http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ" target="_blank">
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ</a><br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></div></blockquote>
</div><br><br clear="all"><br>-- <br><a href="http://search.goldwatches.com/?Search=Movado+Watches">http://search.goldwatches.com/?Search=Movado+Watches</a> <br><a href="http://www.jewelerslounge.com">http://www.jewelerslounge.com
</a><br><a href="http://www.goldwatches.com">http://www.goldwatches.com</a>