-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
In this chapter, you learned about the history of static typing in Ruby. You learned about how types in Ruby differ from classes, and the problems that occur if you treat types and classes as the same. You've thought about what a correct, method-based type system would look like, even if it isn't feasible. You saw the effort it took to correctly type a single line method in Ruby. You learned about some of the many Ruby features you would have to give up to use a static typing system in Ruby. You've also learned about the benefits brought by the static typing systems, and how to decide whether those benefits are worth the costs.
One feature that static typing systems offer in other languages is improved performance. While using a static typing system in Ruby does not increase performance (and actually decreases performance when runtime checks are used), there are other ways you can improve performance, which you'll learn about in the next chapter.
Change the font size
Change margin width
Change background colour