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

Re: Programming strategy with no on-going testing

by 5mi11er (Deacon)
on Mar 15, 2005 at 17:01 UTC ( [id://439678]=note: print w/replies, xml ) Need Help??


in reply to Programming strategy with no on-going testing

I've noticed no one's hit your question square on (at least in my opinion), so I'll try.

No matter how "good" or experienced you get you'll always make silly little mistakes. Punctuation problems are probably going to end up as a large percentage of the problems you'll "create" over the course of your programming lifetime. There are tools that will help minimize them, such as the colorized editors etc. But they will still happen.

As most everyone else has said, small chunks, lots of on going testing are better. It will generally be more efficient. I remember times in my past, after writing lots of code without testing, just to spend the next two days debugging all that. No, it's much more efficient to test a little bit, than it is to have to debug for a LONG time.

On the other hand, if you're not very experienced, then you will likely have more logic problems to deal with. You will get better at being able to "run the code through your head" to discover logic problems before seeing the output is not doing what you'd expected or wanted. It will just take time, and "methodology" is really not going to help speed this up very much. But, logic problems still reinforce the write a small bit and test methodology. Obviously writing a lot of problem logic code will take longer to sort out than short bits, so, it still follows that you want to write short amounts and test them often.

Hopefully I've gotten to the heart of your questions,

-Scott

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found