Print Email Facebook Twitter Effects of Refactoring on Productivity in Relation to Code Understandability Title Effects of Refactoring on Productivity in Relation to Code Understandability Author Ammerlaan, E. Contributor Zaidman, A.E. (mentor) Veninga, W. (mentor) Faculty Electrical Engineering, Mathematics and Computer Science Department Software Engineering Date 2014-07-21 Abstract Depending on the context, the benefits of clean code with respect to understandability might be less plain in the short term than is often claimed. This work has studied a system with legacy code in an industrial environment to evaluate if giving ‘clean code’ to developers would immediately lead to increases in productivity. They were given refactored components and were assigned small coding tasks to complete. Contrary to our expectations, we observed both increases as well as decreases in understandability, showing that immediate increases in understandability are not always obvious. This study suggests that negative effects could have been caused by the fact that the test subjects were used to long methods rather than a decomposed design. Another finding is that unit tests, accompanying refactorings, can lead to more substantial increases in productivity. Secondly, developers tend to implement higher quality solutions when working with clean code. A recommendation to improve the net return on refactoring is to not just refactor to improve its understandability, unless one has additional motives, such as easing maintenance or increasing testability. Subject refactoringcode qualitysoftware re-engineeringunit testing To reference this document use: http://resolver.tudelft.nl/uuid:bb857573-ca20-44ee-921a-30e66ee3767c Part of collection Student theses Document type master thesis Rights (c) 2014 Ammerlaan, E. Files PDF Effects_of_Refactoring_on ... bility.pdf 2.17 MB Close viewer /islandora/object/uuid:bb857573-ca20-44ee-921a-30e66ee3767c/datastream/OBJ/view