Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Refactoring

by dws (Chancellor)
on Apr 07, 2001 at 21:22 UTC ( #70731=note: print w/ replies, xml ) Need Help??


in reply to Re: Refactoring
in thread Refactoring

Refactoring is good. Refactoring without testing is nearly impossible.

That's a bit strong. While cleaning up or migrating legacy code, I've done a lot of refactoring without having a solid base of unit tests. It can be done, but it's tough on the psyche.

I think a more accurate statement is:

It is difficult to refactor with confidence without having a complete set of regressions tests that cover the code you're refactoring.
In fact, having adopted the "write your tests first" dictum from eXtreme Programming, I'm finding it uncomfortable to do any development without having a set of regression tests at hand. An infectious notion, that.


Comment on Re: Re: Refactoring

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-09-30 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (369 votes), past polls