Python vs. Perl
I'm wondering what people's thoughts are about Python vs. Perl as a scripting language? I consider myself a quite good Perl programmer (self-taught and a lot of on-the-job experience) and I took a Python class at NYU.
Frankly, Python didn't really do anything for me. I'd rather code in Perl any day. What is the attraction so many have to Python? It's a bit stricter and therefore easier to debug, but that's my only thought... |
Quote:
|
Quote:
|
Quote:
|
I think the one thing I really HATED about Python was its reliance on whitespace for blocks of code instead of the usual braces or BEGIN and END.
|
Yeah, python would be ok if not for the whitespace problems. For me, that stops me from enjoying it enough to use it. I really appreciate the flexibility of perl and, of course, the scope of what's in CPAN.
|
I'm interested in learning Perl, but I really don't know where to begin. Perl 5 ? Perl 6 ? Not sure.
Otherwise, Perl is probably quite good. I personally find Python a little bit overkill for many tasks, and fall back on BASH for system tasks that I want to script. It may or may not be as fast, but sometimes it just makes more sense. |
Quote:
|
Quote:
|
Quote:
|
I have experience working with perl and python and I would say that I will never use perl on a project, and if I found perl code I will rewrite to python :D
|
Quote:
My only "issue" with Python is its lack of scope. I really wish Py3k had introduced at least the *option* to use scope delimiters. I don't care how pretty Python code is, after a few levels of indentation, it gets confusing to figure out what parents what. |
Quote:
Mind, python also has a incompatible release cross-over. As if there aren't enough new languages coming out all the time. |
Quote:
|
The languages are subtly different – indentation aside. :)
It's clear that Python's designer was familiar with LISP. There is a lot of list-processing mojo built into it. Likewise, Perl shows an unmistakable influence of awk, which it was (in one sense) "built to replace." Functionally, both languages are efficient ... well, except for Perl-6, which decidedly isn't :rolleyes: ... and are well-supported by contributed libraries. The contributed libraries are really "what the fuss is about." Many applications are constructed by piecing together objects and subsystems which are built and maintained by other people. (So you can "write a complete HTTP server using one line of code," for instance.) Perl, in particular, will not only install a package but rigorously test it on your machine before making it available for your use. I simply believe that you should make it your business to familiarize yourself with present and emerging languages – because, well, "it is 'your business!'" :) (Programming languages happen to be a special interest of mine.) You can fully expect to encounter a wide variety of programming languages in use, simultaneously, at any "shop" you might work for or set up. At some point when beginning a new project you'll make the "fateful decision" of which language to use. (And every programmer who follows you will throw darts at your picture on their wall.) But, most of the time, there is no meaningful "versus." You'll continue the project in whatever language was originally picked – most of the time. (However, sometimes several tools are used in the context of a single project, both client-side and server-side. It can get nasty.) |
All times are GMT -5. The time now is 02:12 PM. |