Zum Hauptinhalt springen Zur Suche springen Zur Hauptnavigation springen
Beschreibung
Learn to write clean Ruby code that your team will thank you for. This fully revised and expanded edition goes far beyond the basics to help you master the principles and practices to keep your Ruby code elegant, maintainable, and future-proof.

Author Carleton DiLeo draws on years of experience across diverse Ruby codebases to show you why clean code matters and how to achieve it using today’s best practices. You’ll learn foundational principles like SOLID, DRY, and KISS, explore modern Ruby idioms such as pattern matching and safe navigation, and discover strategies for refactoring, error handling, and performance tuning.

Unlike books that only tell you how to write Ruby, this edition explains why these choices matter, and how they impact readability, scalability, and team productivity. With new chapters on metaprogramming, design patterns, sustainable development practices, and benchmarking tools, this book equips you to write Ruby code that stands the test of time.

What You Will Learn:

Apply core principles (SOLID, DRY, YAGNI, KISS) to real-world Ruby code

Use modern Ruby features: pattern matching, safe navigation, keyword arguments

Create cleaner classes and methods with practical examples

Refactor confidently with tests-first strategies

Handle errors responsibly with domain-specific exceptions

Implement design patterns in Ruby and avoid common pitfalls

Improve performance using benchmarking and profiling tools

Build sustainable practices: linters, CI, code reviews

Who this Book is for:

Ruby developers, ideally who have taken a Ruby on Rails bootcamp or have a few years of experience, who want to go beyond syntax to master writing clean, professional-grade code.
Learn to write clean Ruby code that your team will thank you for. This fully revised and expanded edition goes far beyond the basics to help you master the principles and practices to keep your Ruby code elegant, maintainable, and future-proof.

Author Carleton DiLeo draws on years of experience across diverse Ruby codebases to show you why clean code matters and how to achieve it using today’s best practices. You’ll learn foundational principles like SOLID, DRY, and KISS, explore modern Ruby idioms such as pattern matching and safe navigation, and discover strategies for refactoring, error handling, and performance tuning.

Unlike books that only tell you how to write Ruby, this edition explains why these choices matter, and how they impact readability, scalability, and team productivity. With new chapters on metaprogramming, design patterns, sustainable development practices, and benchmarking tools, this book equips you to write Ruby code that stands the test of time.

What You Will Learn:

Apply core principles (SOLID, DRY, YAGNI, KISS) to real-world Ruby code

Use modern Ruby features: pattern matching, safe navigation, keyword arguments

Create cleaner classes and methods with practical examples

Refactor confidently with tests-first strategies

Handle errors responsibly with domain-specific exceptions

Implement design patterns in Ruby and avoid common pitfalls

Improve performance using benchmarking and profiling tools

Build sustainable practices: linters, CI, code reviews

Who this Book is for:

Ruby developers, ideally who have taken a Ruby on Rails bootcamp or have a few years of experience, who want to go beyond syntax to master writing clean, professional-grade code.
Über den Autor
Carleton DiLeo is a software developer with more than 20 years of experience working in everything from VR to web development. He has written code from high-traffic websites to back-end big data systems to video games using a number of different languages and technologies. This wide base of knowledge provides Carleton with a unique perspective when writing Ruby code. He is currently a remote principal software engineer building robust, scalable systems.
Inhaltsverzeichnis

1. Why Clean Ruby Matters.- 2. Principles.- 3. Naming Things.- 4. Creating Quality Methods.- 5. Using Boolean Logic.- 6. Classes.- 7. Looping.- 8. Metaprogramming.- 9. Modern Ruby Idioms.- 10. Refactoring.- 11. Test-Driven Development.- 12. Error Handling.- 13. Design Patterns.- 14. Sustainable Clean Code.- 15. Performance.

Details
Erscheinungsjahr: 2026
Fachbereich: Programmiersprachen
Genre: Importe, Informatik
Rubrik: Naturwissenschaften & Technik
Medium: Taschenbuch
Inhalt: xx
369 S.
4 s/w Illustr.
369 p. 4 illus.
ISBN-13: 9798868826429
Sprache: Englisch
Herstellernummer: 89600131
Einband: Kartoniert / Broschiert
Autor: DiLeo, Carleton
Auflage: Second Edition
Hersteller: Apress
Verantwortliche Person für die EU: APress in Springer Science + Business Media, Heidelberger Platz 3, D-14197 Berlin, juergen.hartmann@springer.com
Maße: 254 x 178 x 22 mm
Von/Mit: Carleton DiLeo
Erscheinungsdatum: 21.07.2026
Gewicht: 0,735 kg
Artikel-ID: 135943036

Ähnliche Produkte