-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
How to format code can be a divisive topic, especially in a language designed for programmers' happiness. The Ruby community values diversity, and Ruby programmers' opinions on code formatting are diverse. As long as Ruby code has valid syntax, there is no objectively correct way to format it, only subjective opinions regarding which ways are better. That being said, how code is formatted affects programmer happiness, so when you are maintaining code, you should think about code formatting and the trade-offs related to it.
We will cover the following topics in this chapter:
By the end of this chapter, you'll understand better whether to enforce code formatting, and how best to do so...
Change the font size
Change margin width
Change background colour