Re: Intro to Writing "Good" Code



On Sat, 11 Feb 2006 16:02:01 -0700, Carter Smith wrote:

Usability: If a piece of code requires a million things outside it's scope
to work then it's not particularly usable. The more self contained a
function is, the more useful it is. As a general rule a function should
not require any external values that are not passed in as parameters.

The first and last sentences seem to rule out closures, but the middle
one seems to say they are OK. I can't decide which to believe!

--
Ben.

.