Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I've been trying to get my head around OO for 15 years and made no progress ... how do I learn OO without melting my brain?

I am not sure whether you are talking about creating object oriented code, or using object oriented APIs. What you mean can have a lot of implications on the answer.

If you mean the former, then no, you will not be forced to write all your code in an object oriented way. Even in languages that try to force this sort of thing on their users, you can usually write procedural code in an object-oriented wrapper. This does not require much more than learning some syntax, and proceeding to do things essentially the same way you always have.

If you're talking about using APIs that are more object-oriented, then perhaps. Perl 6 will make most everything look like an object (even if it's not truly an object, it will at least look like it). As BrentDax mentioned, there will be ways to access the functionality with alternate syntaxes, but learning the OO way might be advantageous.

Do not despair, though. If made reasonably -- which I think most Perl APIs tend to be -- learning how to use an object oriented interface is not very difficult. In fact, I find it difficult to believe you haven't already, after using Perl for very long. You just might not realize it.


In reply to Re: Perl 6, Object Orientation and Melting Brains by revdiablo
in thread Perl 6, Object Orientation and Melting Brains by willyyam

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



  • 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 or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

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



    Results (82 votes). Check out past polls.

    Notices?