testdriven.com Wrangling quality out of chaos

Delphi 8’s Free

06.29.2004 · Posted in Links by Eric Vautier

Julian Bucknall addresses the use of the Free command to deallocate memory, and brushes on its relevancy to test-first development: "If you follow TDD guidelines, you won’t use try..finally, Free. Why? Because, in the majority of situations, you’ll be writing code that’s not necessary and this runs against the mantra of TDD: write only the simplest code you need to pass the current test."
link

Tags:

Comments are closed