Python is more OOPy, but its warts(*) make it too much of a putoff for me (IMHO). If you want a more "pure" OO language, I'd look at Ruby. I'm playing with it now (specifically Ruby on Rails) and I'm liking it much more than when I toyed with Python.
Either way you should try and pick up at least one of the two; it never hurts to be at least conversant in another language (more resumé fodder :) and it'll help you improve as a programmer to be familiar with another way of looking at problems.
(*) Things that specifically bugged me were:
- the whole whitespace has semantic meaning depending on how much of it there is thing; yes, with a good editor it's more transparent, but it renders python -e "..." type stuff useless and that's something I use Perl for frequently
- up until the recent 2.x branch namespaces and scoping were horrible; I haven't looked recently but this has improved somewhat (so I've heard)
- trailing commas have different meanings in different contexts (append/don't append newline on print statements, vs list/tuple in assignments)
- lambda doesn't produce a real closure; something like Ruby's blocks is going in sometime, but given the infamous (possibly apocryphal) statement by Guido that he didn't see what anyone would use closures for I don't hold out much hope
I know that some of these have been addressed, but on the whole Python's still . . . *shudder*. Ruby's much more yummy.
--
We're looking for people in ATL
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|