Refactoring - Inline Temp

Motivation: You have a temp that is assigned to once with a simple expression, and the temp is getting in the way of other refactorings.

float dvdPrice = MovieDVD.Price();
return dvdPrice;

Refactor as:
return MovieDVD.Price();

Comments

Popular posts from this blog

Test Case Template for Project Using Agile Methodology

Measurement & Metrics

Performance Test Run Report Template