[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed Aug 4 10:27:49 2004 -->
- <!--x-from-r13: zuvefpu ng ahoevqtrf.pbz ([vpunry R. Vvefpu) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: 1091583686.13722.42.camel@devel -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Python questions -->
- <li><em>date</em>: Wed Aug 4 10:27:49 2004</li>
- <li><em>from</em>: mhirsch at nubridges.com (Michael D. Hirsch)</li>
- <li><em>in-reply-to</em>: <<a href="msg00105.html">[email protected]</a>></li>
- <li><em>references</em>: <1091583686.13722.42.camel@devel> <<a href="msg00105.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Python questions</li>
Check out the "Vautlts of Parnassus" <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.
> > What would be the benefit of Python over Perl for writing basically
> > scripts that do everything. My programs are the backend agents for a
> > J2EE application. The gather data, notify technicians, etc. J2EE is
> > only used for the presentation of that data.
>
> Almost flamebait... :)
>
> There seem to be two completely different mindsets between perl and
> python. The "there's more than one way to do it" from perl give a huge
> amount of freedom to the developer at the expense of cryptic code to
> debug later. Python requires some very rigid coding constraints
> (whitespace counts is the first one to encounter) that can make for more
> 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>