Skip to Content
Polished Ruby Programming
book

Polished Ruby Programming

by Jeremy Evans
July 2021
Intermediate to advanced
434 pages
8h 36m
English
Packt Publishing
Content preview from Polished Ruby Programming

Chapter 6: Formatting Code for Easy Reading

How to format code can be a divisive topic, especially in a language designed for programmers' happiness. In this chapter, you'll learn about different mindsets for code formatting, the advantages of consistency, the disadvantages of arbitrary limits, and the trade-offs of code formatting enforcement. You'll also learn about Ruby's built-in code formatting checker.

We will cover the following topics in this chapter:

  • Recognizing different perspectives of code formatting
  • Learning how syntactic consistency affects maintainability
  • Understanding the consequences of using arbitrary limits
  • Checking basic code formatting with Ruby
  • Realizing the actual importance of code formatting

By the end of this chapter, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Ruby 3.3

Programming Ruby 3.3

Noel Rappin, Dave Thomas
The Ruby Programming Language

The Ruby Programming Language

David Flanagan, Yukihiro Matsumoto

Publisher Resources

ISBN: 9781801072724Supplemental Content