-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
In this chapter, you learned all about Ruby's different variable types. You learned how to use local variables whenever possible. You also learned how using intelligent caching with both local variables and instance variables can provide substantial performance benefits. You learned that constants are just another type of variable, and how to replace class variables and global variables. Most importantly, you learned when it is appropriate to use each of Ruby's variable types, and how to properly name them. Those are two of the most important factors in writing maintainable Ruby programs.
In the next chapter, you'll build on this knowledge when you learn about methods, and how best to use their many types of parameters.
Change the font size
Change margin width
Change background colour