Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 8. General Programming > Item 45: Minimize the scope of local variables - Pg. 209

C H A P T E R 8 General Programming HIS chapter is largely devoted to the nuts and bolts of the language. It dis- cusses the treatment of local variables, control structures, the use of libraries, the use of various data types, and the use of two extralinguistic facilities: reflection and native methods. Finally, it discusses optimization and naming conventions. T Item 45: Minimize the scope of local variables This item is similar in nature to Item 13, "Minimize the accessibility of classes and members." By minimizing the scope of local variables, you increase the read-