Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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.

-Pileofrogs


Comment on Re: Avoiding silly programming mistakes

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-07-04 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls