Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Newbie OO module-structure question

by eyepopslikeamosquito (Bishop)
on Apr 29, 2019 at 21:08 UTC ( #1233157=note: print w/replies, xml ) Need Help??

in reply to Newbie OO module-structure question

First write a regression test suite. You need protection from introducing new bugs as you refactor your code. Some general tips:

  • Ensure each module can be easily tested in isolation.
  • Interfaces matter. Minimize the exposure of implementation details; provide stable interfaces to protect the remainder of the program from the details of the implementation (which are likely to change) - don't just provide full access to the data used in the implementation. (See Information hiding).

See also:

  • Comment on Re: Newbie OO module-structure question

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1233157]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2020-06-04 19:46 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (35 votes). Check out past polls.