Refactoring

Advanced Programming Concepts 2014

23-27 June 2014
MPI Munich, Germany
School web site

Lecture

The lecture summarizes the main concepts of refactoring, with special attention to refactoring physics code.

Slides

References for further study

M. Fowler, Refactoring: Improving the Design of Existing Code, Addison-Wesley Professional, 1999
M. Feathers, Working Effectively with Legacy Code, Prentice Hall, 2004
S. Demeyer, S. Ducasse, Oscar Nierstrasz, Object-Oriented Reengineering Patterns, 2009
Robert C. Martin, Clean Code: A Handbook of Agile Software Craftsmanship, Prentice Hall, 2008

Exercise 1: The Video Store Example

This exercise is based on the "Video Store Example" described in Chapter 1 of the Refactoring book by M. Fowler. red77.gif Slides

Exercise 2: Refactoring real-life physics code

This exercise deals with the calculation of the photoelectric cross section in Geant4 standard electromagnetic package. red77.gif Slides


Last modified 15/6/2014 - Maria Grazia Pia