Huh? The vast majority of my Python scripts are purely procedural. The libraries are OO, but that doesn't affect the structure of my code much.

I made several serious attempts to learn Perl, precisely because I know my scripts would be more concise in Perl than in Python, but I find that my scripting needs are too erratic. Concision requires richness, and I can't retain such a rich language without frequent exposure. Excluding throwaway scripts, I typically spend half a day writing a script and then go several weeks without needing to do any scripting. My attempts to learn Perl ended because every month or two I tried to write a Perl program and ended up spending as much time reviewing the language as I spent coding.

Python is a fairly small, simple language that doesn't present opportunities for wizardry. It's a perfect language for me, but it's probably an inferior scripting tool to Perl for people who are capable of retaining a useful subset of Perl.

I don't understand how Python forces OO at all. I rarely define classes in Python except in fairly large programs, and even then I use them more as datatypes than to implement OO design.


In reply to Re^3: Enlightenment and Frustration by Anonymous Monk
in thread Enlightenment and Frustration by chexmix

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.