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

Re: Re: Are debugging skills atrophying?

by deprecated (Priest)
on Apr 28, 2001 at 02:47 UTC ( #76293=note: print w/ replies, xml ) Need Help??


in reply to Re: Are debugging skills atrophying?
in thread Are debugging skills atrophying?

    Always have a testable version that's no more than a dozen lines different from the one you're working on. Then you'll know your error is always within the last dozen lines of code you wrote.

I read this and I think "shell script". Do you have a set of tools you use when youre programming? For example, the above procedure could easily be accomplished by something like this:

#!/usr/local/bin/bash [ perl -c "$1" ] && cp "$1" "`echo $1| sed 's:.pl::g'`.bak.pl" && vim "$1"
(forgive the shellness of the example, and I havent tested it either) -- but this would ensure that you have a working copy saved, that it is good, and you can continue to develop on the new copy. If you train yourself to pause every 12 lines, or (where i usually break) every new sub, you could save yourself a lot of time. I have a lot of scripts like this, I'm curious if you use anything like that.

And yeah, you did recently post something on debugging, and I remember upvoting it. After looking in the Secret Search I see:

I'm sure i'm missing stuff.

brother dep.

--
Laziness, Impatience, Hubris, and Generosity.


Comment on Re: Re: Are debugging skills atrophying?
Download Code
Re: Re: Re: Are debugging skills atrophying?
by Anonymous Monk on Apr 29, 2001 at 09:45 UTC
    Yes you are missing something: an OS with a file access subsystem that automatically saves old versions of files for you. My friend you are missing the wonders of VMS :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2014-07-25 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls