R. Joseph Newton wrote:
Lance wrote:



If I hafta pass in refs from loop1 2 and 3 all the way down the line, So Be
It.  It just makes my argument list a little unsightly, is all.

 It can also help you prevent confusion.

I agree with what you said, particularly about scalability and encapsulation. But I think you glossed over the above point to quickly. Keeping track of variables through thousands of lines of code, while not fun, can be done. However, tracking down bugs in thousands of lines of code because someone uses a variable haphazardly because they know (think) it will exist, without actually passing it or testing for it is a bigger nightmare than memorizing the variables. Tracking back to a variable that isn't set is often much easier than tracking back to a variable that *is* set but shouldn't or is unexpected to be...

http://danconia.org


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to