-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
Code formatting is an important part of programming, and can affect how maintainable your code is. However, in most cases, the formatting of code matters far less than you would initially expect. Outside of egregious cases, you'd probably be able to read two differently formatted lines of code, and determine whether they accomplish the same thing.
How inherent and incidental complexity are managed is far more important than how the code is formatted. There's definitely code that is difficult to understand regardless of how it is formatted. Focus on the understandability of your code, not the formatting of your code, even if you choose to enforce a specific code style. In general, you don't need to worry about how your code is formatted unless it negatively impacts the understandability of your code.
In this chapter, you've learned that Ruby programmers are a diverse group, with different code formatting preferences. You've learned that some Ruby programmers...
Change the font size
Change margin width
Change background colour