Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

(shockme) Re: Programming Mantras

by shockme (Chaplain)
on Jan 21, 2002 at 08:16 UTC ( [id://140304]=note: print w/replies, xml ) Need Help??


in reply to Programming Mantras

"Am I going to remember why I did this?"

Moreoften than not, it's several weeks - if not months - before I revisit my code. A little one line comment goes a long way toward reducing my debug time... Self-documenting code is great, but it doesn't always explain why I used ++$counter rather than $counter++.

If things get any worse, I'll have to ask you to stop helping me.

Replies are listed 'Best First'.
Re(2) (shockme): Programming Mantras
by dmmiller2k (Chaplain) on Jan 22, 2002 at 08:48 UTC
    "Am I going to remember why I did this?"

    Wow! That hit's the nail right on the head for me! Or a related corollary:

    "Will anyone be able to figure out why I did this?"

    dmm

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found