Table of Contents
Preface
Section 1: Fundamental Ruby Programming Principles
Chapter 1: Getting the Most out of Core Classes
Technical requirements
Learning when to use core classes
Best uses for true, false, and nil objects
Different numeric types for different needs
Understanding how symbols differ from strings
Learning how best to use arrays, hashes, and sets
Implementing an in-memory database
Working with Struct – one of the underappreciated core classes
Summary
Questions
Further reading
Chapter 2: Designing Useful Custom Classes
Technical requirements
Learning when to create a custom class
Handling trade-offs in SOLID design
The single-responsibility principle
The open-closed principle
The Liskov substitution principle
The interface segregation ...
Get Polished Ruby Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.