I too, used to have a bit of trouble wrapping my head around OOP. Tried Java at home, but without any real projects, it was just playing, and nothing sunk in.
So what I did was this: I purchased Damian Conway's book on OO Perl, and took in as much as I could. Then, for my next couple of Perl projects, I used OO rather than procedural logic, even though OO wasn't really required. It just forced me to get used to the idiom, and when I got stuck, I'd return to D's book. Now, when I use Java or even C#, I'm easily splip into OO mode.
(BTW: now that I've got what I needed out of OO Perl, I don't use it that much. I like it, but my work generally requires me to knock up quick scripts, and OO Perl isn't really required. However, I'm grateful to the CPAN contributors who offer OO interfaces -- they make my life easier)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|