Do you blend procedural programming with OO?

The dividing line between "procedural" and "object-oriented" isn't really that clear. I'm not sure an unambiguous definition for OOP even exists. Most (all?) OO languages can be thought of as a subset of procedural languages. Attempts to create "pure OO" languages haven't been overwhelmingly successful. Most (all?) of those provide some degree of support for procedural conventions. At the very least, OO and procedural languages both fall under the larger "imperative programming" heading (as opposed to logical and functional programming.)

I prefer to think of OO as a natural extension of the procedural approach; the key enhancement being the association of procedures with the data they act on. OO is to data as structured programming is to flow control.

So, yes. And underneath the covers, I use branches and loops in pretty much all of my class implementations... :-)

-sauoq
"My two cents aren't worth a dime.";

In reply to Re: When to use OO by sauoq
in thread When to use OO by bart

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.