Re: Intro to Writing "Good" Code
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Sun, 12 Feb 2006 03:44:48 +0000
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.
.
- References:
- Intro to Writing "Good" Code
- From: Carter Smith
- Intro to Writing "Good" Code
- Prev by Date: Re: Data structure recommendations
- Next by Date: Re: If St. Peter were a human resources manager...
- Previous by thread: Re: Intro to Writing "Good" Code
- Next by thread: Re: Intro to Writing "Good" Code
- Index(es):