[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Check out the &quot;Vautlts of Parnassus&quot; <a  rel="nofollow" href="http://www.vex.net/parnassus/";>http://www.vex.net/parnassus/</a>.  It is not 
as easy and complete as CPAN, but you can find pretty much every Python 
library there.

&gt; &gt; What would be the benefit of Python over Perl for writing basically
&gt; &gt; scripts that do everything.  My programs are the backend agents for a
&gt; &gt; J2EE application.  The gather data, notify technicians, etc.  J2EE is
&gt; &gt; only used for the presentation of that data.
&gt;
&gt; Almost flamebait...   :)
&gt;
&gt; There seem to be two completely different mindsets between perl and
&gt; python. The &quot;there's more than one way to do it&quot; from perl give a huge
&gt; amount of freedom to the developer at the expense of cryptic code to
&gt; debug later. Python requires some very rigid coding constraints
&gt; (whitespace counts is the first one to encounter) that can make for more
&gt; readable code later. But the module base in perl is much larger.

I would phrase this same idea somewhat differently.  Perl almost encourages 
obfuscated code in that it is very easy to write code that is difficult to 
understand a few months later.  Python syntax is much more readable--you have 
to work hard to write hard to follow code.  Please note that I am not 
claiming you can't write clean perl code or obfuscated Python code.

Python is fully object oriented, whereas perl's objects are more a coding 
convention.  If you want objects and are not already addicted to perl, Python 
is probably a better bet.

For one-off scripts perl can't be beat.  For entire systems that need long 
term maintenance, Python would be my choice.  It sounds to me like your needs 
lie right in the middle of these two extremes.

You say you are working in a J2EE application.  I can understand not wanting 
to use Java for these things--Java can be clunky for scripty stuff.  On the 
other hand, once you are in a JVM it is nice to stay there.  You might enjoy 
checking out a couple of the hundred or so Java scripting languages.  I 
recommend looking at Jython (Python in a JVM--all the advantages of Python 
inside the JVM) or Groovy (Java-like syntax, but still a scripting language).

Alternatively, you might check out Ruby.  It seems very popular with the 
hackish crowd.  It is even more OO than Python (which is more OO than Java), 
but it has a more perlish syntax.  

Michael


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00116" href="msg00116.html">[ale] Python questions</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00102" href="msg00102.html">[ale] Python questions</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
<li><strong><a name="00105" href="msg00105.html">[ale] Python questions</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00113.html">[ale] Fedora Core 2 Question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00115.html">[ale] Fedora Core 2 Question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00105.html">[ale] Python questions</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00116.html">[ale] Python questions</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00114"><strong>Date</strong></a></li>
<li><a href="threads.html#00114"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>