Refactoring

Our development store is hosting a local college workshop to promote clean code (standards from the book of the same name) and best practices. Now we need links to time and effort. Has anyone read about this research?

Thank,

John

+2


source to share


3 answers


Quick search appeared:

Questions about software development practice in general are very difficult to study objectively, because how often do you launch the same project from the same requirements with the same technical tools and two teams of exactly identical knowledge and talent, but with different processes? However, studies do start, usually comparing large projects in similar areas and using measures such as defect rates and various code metrics as proxies for more complex things like "performance".



There's more, but you have to start.

Change: . I would like to add a nice ArneRie argument made in another answer: Refactoring working code that you don't plan on changing costs, not keeping it. Much of the value of refactoring is that it reduces the cost of change (by encouraging modularity and single responsibility, eliminating duplication of logic, etc.). It follows, however, that you lose this value if you have no intention of changing the code. Refactoring efforts should focus on changing the code.

+2


source


It is always difficult to gauge the time and effort that has been saved (because, well, you haven't invested that time and that effort), but I will always say that "best practices" are better "for a reason: they save you time and efforts".



And yes, this is a very empirical definition.

0


source


Hi my opinion: Don't work with working code if you don't need it. My best practice is refactoring code that I have to change to update or fix a bug.

0


source







All Articles