Recently, in my Gr 12 programming class, we had to do a web based project. That was cool - I could use Perl to do it, not the panzy JavaScript we had been using! I submitted my proprosal to make something to generate a new page through form submission. It got oked. I then attempted to persuade my teacher to let me use Perl. After much arguing, I was finally allowed to - great! Just a simple top->down script to do my bidding. No mess, no nothing. However, my teacher, fool that he is, forced me to do it in OO syntax! Now, my nice little 2 page script has ballooned out into a dozen modules and about 20 pages worth of code. Mostly due to having to make constructors and their ilk for about 10 different objects, but all the same, OO was not the right choice for the job.

Question: Should a line be drawn for use of OO code? Yes, I can re-use some of my modules, but most of them were special-purpose, so much so that not even extensive use of polymorphism (love that word) could save them. Should OO stop at some point?

Cestus

Microsoft and Shinra are the same. They're both killing the planet.

In reply to OO 2 death? by Cestus

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.