Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Perl vs. Python: Looking at the Code

by mothra (Hermit)
on Apr 03, 2002 at 17:24 UTC ( #156358=note: print w/replies, xml ) Need Help??


in reply to Re: Perl vs. Python: Looking at the Code
in thread Perl vs. Python: Looking at the Code

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re: Re: Perl vs. Python: Looking at the Code

Replies are listed 'Best First'.
Re: Re: Re: Perl vs. Python: Looking at the Code
by davorg (Chancellor) on Apr 03, 2002 at 17:54 UTC
    ...all I've ended up with is general "cuz I like it better" comments made by people who know almost nothing about Python.

    Well I refrained from detailed comment because you specifically said that you weren't interested in hearing from people who didn't know Python well. But it sounds like people who don't know Python well are about all we've got around here :)

    I've thought a few times that I really should make the effort to learn Python. I've bought the Learning Python book. I've sat down with it both in a comfortable chair and in front of a computer. I've learned many programming languages in my time. It doesn't take me long to pick up the differences in syntax.

    But learning Perl was different. When I learned Perl there was something about it that really made sense to me. It fitted my thought patterns far better than any other language I'd learned before. For ages after discovering Perl I didn't bother to learn an new languages because I could do what I wanted in Perl far faster than I could do it in any other language.

    In the last year I've tried to look at both Python and Java. Neither of them made the same impression that Perl did. They both seemed far too restrictive about how you did things. You seem to think that's a good thing in Python. I far prefer being able to do things in a number of different ways and being able to choose the best one for any particular job. I don't think that's a problem for any decent maintenance programmer.

    So, OK, you've shown that in a few cases you type less characters in Python. So what? Like others have said, the sigils mean something in Perl. Looks to me like you'd have to go searching for that kind of information in a Python program.

    I'll probably go back to learning Python and Java soon. I'll probably be able to get pretty good at them. But from what I've seen so far, I really can't see them replacing Perl as the language that I feel most comfortable with.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Re: Re: Re: Perl vs. Python: Looking at the Code
by demerphq (Chancellor) on Apr 04, 2002 at 11:06 UTC
    Your honor the jury rules on the following counts.
    clearer, more concise syntax
    Charges not proved. Clearer != more concise sysntax. As has been mentioned many times with regard to sigils, a core perl design object was that different types of things should look different so as to reduce confusion
    a shorter path to producing autogenerating documentation
    Not proved. I wrote a simple but effective tool to add pod to an arbitray module class and it only took me an hour. But thats cause I used one of the most sophisticated regex engines there is: Perl.
    having to only worry about, maybe, 4-5 different styles to maintain vs. 20
    Not proved your honor. Complaints like this are redundant in the face of autoindenters like Emacs and PerlTidy. Does Python have a tidier?
    far fewer rules to remember
    Irrelevant. Try doing complicated things with simple tools and the result is convoluted.

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.

Re: Re: Re: Perl vs. Python: Looking at the Code
by buckaduck (Chaplain) on Apr 03, 2002 at 19:22 UTC
    Another example of ignorance. Perl's "." operator and Pythons .append() list method, are two entirely different things.

    A good point (although rudely expressed). (mothra informs me that Python uses foo + bar as the equivalent of the dot operator.) But of course, push is still shorter than .append(). And none of this should have a major impact on which language is preferable.

    buckaduck

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://156358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-05-22 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?