Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Avoiding silly programming mistakes

by pileofrogs (Priest)
on Aug 20, 2008 at 17:17 UTC ( #705558=note: print w/replies, xml ) Need Help??

in reply to Avoiding silly programming mistakes

I actually have advice for the OP! How cool is that?

I make D'oh! mistakes every two seconds. My best strategies involve reducing the opportunities for mistakes. In practice that mostly means code re-use. So, for instance, if you had based your object on a superclass that already did that job of destruction, you wouldn't have made that D'oh mistake. Or, in a less elegant but probably more applicable example, if you had taken an already existing class that included a destructor, gutted most of the code leaving a class skeleton and then wrote your own code, you wouldn't have missed it.


  • Comment on Re: Avoiding silly programming mistakes

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2016-10-21 09:40 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (288 votes). Check out past polls.