Object-Oriented-Abusers

Temporary Field

A route planner whose fields are only filled while one method runs crashes when another method reads them early. Learn to spot a Temporary Field, give the job its own class, and know when a lazy cache is fine.

November 26, 20269 minutes