Polished Ruby Programming

Polished Ruby Programming: Principles and practices for building scalable, maintainable, and performant software

Paperback Published on: 30/07/2026
Price: £41.99
Free UK delivery on orders over £25
Coming soon
Published 30/07/2026
Make and edit your lists in your account
No stock available in any shop.
Coming soon
Published 30/07/2026
No stock available in any shop.

Synopsis

Learn design principles, best practices, and trade-offs involved in implementation approaches, to improve your Ruby programming skills

Key Features

Understand the design principles behind polished Ruby code, and trade-offs involved in different implementation approaches

See how to use plugin systems to build libraries for maximum flexibility and performance

Learn about the advantages and disadvantages of different approaches to concurrency

Book DescriptionMost successful Ruby applications become more difficult to maintain as the codebase grows in size. Polished Ruby Programming, 2nd Edition provides you with the skills and advice you need to design Ruby programs and libraries that are robust, performant, scalable, and maintainable.

The book takes you through possible implementation approaches for many common programming situations, discusses the trade-offs inherent in each approach, and explains why you may sometimes choose to use different approaches. You'll start by learning fundamental Ruby programming principles, such as correctly using core classes, class and method design, variable usage, error handling, and code formatting. Then you’ll move on to higher-level topics such as library design, metaprogramming, domain-specific languages, and refactoring. Finally, you'll learn about the pros and cons of different approaches to concurrency, what you should consider when deciding whether to use static types in your Ruby code, and how best to optimize your Ruby code.

The 2nd edition of Polished Ruby Programming has been updated to include relevant changes between Ruby 3.0 and 3.5. While most principles discussed in the book apply to all recent Ruby versions, some of the content in the book is specific to Ruby 3.5, the latest release at the time of publication.What you will learn

Use Ruby's core classes and design custom classes effectively

Explore the principles behind variable usage and method argument choice

Design extensible libraries and plugin systems in Ruby

Use metaprogramming and DSLs to avoid code redundancy

Implement different approaches to testing and understand their trade-offs

Discover design patterns, refactoring, and optimization with Ruby

Learn about the trade-offs inherent in different concurrency approaches

Determine whether using static types in Ruby makes sense for you

Who this book is forIf you already know how to program in Ruby and want to learn more about the principles and best practices behind writing maintainable, scalable, optimized, and well-structured Ruby code, then this book is for you. Intermediate to advanced-level working knowledge of the Ruby programming language is expected to get the most out of this book.

Publisher information

  • Publisher: Packt Publishing Limited
  • ISBN: 9781803243641
  • Dimensions: 235 x 191 mm
  • Languages: English

Customer Reviews