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

Performance Test Run Report Template

Understanding Blockchain

Bugs Management in Agile Project