Difference between revisions of "Refactoring and design"

(relation to XP and design)
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
−
{{quotebox|One argument is that [[refactoring]] can be an alternative to upfront design. In this scenario you don't do any design at all. You just code the first approach that comes into you rhead, get it working, and then refactor it into shape. Actually, this approach can work. I've seen people do this and come out with a very well-designed piece of software. Those who support [[Extreme Programming]] often are portrayed as advocating this approach.  
+
[[Martin Fowler]] wrote, in ''[[Refactoring (book)|Refactoring]]'':
−
Although doing only refactoring does work, it is not the most efficient way to work. Even the extreme programmers do same design first. - [[Martin Fowler]], in ''[[Refactoring]]'' }}
+
 
 +
*One argument is that [[refactoring]] can be an alternative to [[upfront design]]. In this scenario you don't do any design at all. You just code the first approach that comes into your head, get it working, and then [[refactor]] it into shape. Actually, this approach can work. I've seen people do this and come out with a very well-designed piece of [[software]]. Those who support [[Extreme Programming]] often are portrayed as advocating this approach.  
 +
*Although doing only [[refactoring]] does work, it is not the most efficient way to work. Even the [[extreme programmers]] do same design first.
 +
[[Category:Computer Science]]

Latest revision as of 00:16, December 15, 2009

Martin Fowler wrote, in Refactoring:

  • One argument is that refactoring can be an alternative to upfront design. In this scenario you don't do any design at all. You just code the first approach that comes into your head, get it working, and then refactor it into shape. Actually, this approach can work. I've seen people do this and come out with a very well-designed piece of software. Those who support Extreme Programming often are portrayed as advocating this approach.
  • Although doing only refactoring does work, it is not the most efficient way to work. Even the extreme programmers do same design first.