The Well-Grounded Rubyist, Fourth Edition
暫譯: 扎實的 Ruby 程式設計師(第四版)

David, Black A., Leo III, Joseph

  • 出版商: Manning
  • 出版日期: 2026-08-18
  • 售價: $2,420
  • 貴賓價: 9.5$2,299
  • 語言: 英文
  • 頁數: 616
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1633434869
  • ISBN-13: 9781633434868
  • 相關分類: Ruby
  • 海外代購書籍(需單獨結帳)

商品描述

Get the eBook free when you register your print book at Manning.

By putting the core principles of the language on full display rather than treating it as a collection of syntax rules, The Well-Grounded Rubyist, Fourth Edition will help you, as it did several earlier generations, become a better Ruby programmer. In this masterful tutorial, authors David A Black and Joseph Leo III tell a clear programming story: start with basic language literacy, explore how objects and methods interact, build a strong foundation in object-oriented design, and finally move into dynamic features like runtime introspection.

Even seasoned Rubyists appreciate this book's thoughtful introduction of the fundamentals. Early chapters establish a baseline with Ruby's literal constructors, basic object orientation, and control-flow techniques. The middle chapters show how to work with Ruby's built-in collections, highlighting arrays, hashes, and the powerful Enumerable module. Later chapters move into modifying the behavior of the language itself through singleton classes, callable objects, and functional programming techniques.

As you go, you'll see how message passing, method lookup, and variable scope actually operate under the hood. You will also explore common real-world tasks, including file I/O and regular expressions. Difficult concepts such as self, inheritance, and the method_missing hook are clarified with friendly explanations, while rich code samples make abstract principles easy to follow.

The Well-Grounded Rubyist is like time well spent with an expert mentor. Each concept, feature, or practice appears because you need it to write better software. Carefully designed examples, clear chapter progressions, and frequent "aha!" moments help you stay moving, even through advanced material.

It's clear from the beginning that David Black and Joe Leo love to teach Ruby. They explain complex programming topics by making every detail concrete, never losing sight of the larger picture. They do not treat mechanisms like mixins, thread concurrency, or callable objects as isolated abstractions; they connect them to the goal of writing expressive, idiomatic code.

Their careful design keeps the main narrative focused, while ensuring every lesson is instantly applicable to your day-to-day work. The result is a logically flowing book that remains hands-on, navigable, and technically deep without constantly interrupting the learning journey.

Fully updated for Ruby 4.0.1, this book ensures you understand why Rubyists think differently about problem solving.

What's inside

- Ruby's object-oriented core and built-in types
- How to organize code with classes, modules, and mixins
- Harnessing regular expressions, file I/O, and functional techniques

About the reader

For programmers looking to start working with Ruby or deepen their understanding of the language.

About the author

David A Black is a well-known Ruby programmer, trainer, speaker, author, and event organizer, and a founder of Ruby Central. Joseph Leo III is the founder and owner of Ruby on Rails consultancy Def Method.

Table of Contents

Part 1
1 Bootstrapping your Ruby literacy
2 Objects, methods, and local variables
3 Organizing objects with classes
4 Modules and program organization
5 The default object (self), scope, and visibility
6 Control-flow techniques
Part 2
7 Built-in essentials
8 Strings, symbols, and other scalar objects
9 Collection and container objects
10 Collections central: Enumerable and Enumerator
11 Regular expressions and regexp-based string operations
12 File and I/O operations
Part 3
13 Object individuation
14 Callable and runnable objects
15 Callbacks, hooks, and runtime introspection
16 Ruby and functional programming

商品描述(中文翻譯)

在Manning註冊您的印刷書籍時可免費獲得電子書。

通過全面展示語言的核心原則,而不是將其視為語法規則的集合,The Well-Grounded Rubyist, Fourth Edition 將幫助您,正如它幫助了幾代人,成為更好的Ruby程式設計師。在這本精湛的教程中,作者David A BlackJoseph Leo III講述了一個清晰的程式設計故事:從基本的語言素養開始,探索物件和方法如何互動,建立物件導向設計的堅實基礎,最後進入動態特性,如運行時內省。

即使是經驗豐富的Ruby程式設計師也欣賞這本書對基礎知識的深思熟慮的介紹。早期章節通過Ruby的字面構造函數、基本物件導向和控制流技術建立基準。中間章節展示如何使用Ruby的內建集合,重點介紹陣列、哈希和強大的Enumerable模組。後面的章節則探討如何通過單例類、可調用物件和函數式程式設計技術來修改語言本身的行為。

在學習過程中,您將看到消息傳遞、方法查找和變數範圍在背後實際如何運作。您還將探索常見的現實世界任務,包括檔案I/O和正則表達式。像self、繼承和method_missing鉤子這樣的困難概念將通過友好的解釋得到澄清,而豐富的程式碼範例使抽象原則易於理解。

The Well-Grounded Rubyist就像與專家導師共度的美好時光。每個概念、特性或實踐的出現都是因為您需要它來編寫更好的軟體。精心設計的範例、清晰的章節進展和頻繁的「啊哈!」時刻幫助您持續前進,即使在高級材料中也是如此。

從一開始就可以清楚地看出David BlackJoe Leo熱愛教學Ruby。他們通過使每個細節具體化來解釋複雜的程式設計主題,從不忽視更大的全局。他們不將像mixins、執行緒並發或可調用物件這樣的機制視為孤立的抽象;而是將它們與編寫表達性、慣用代碼的目標聯繫起來。

他們的精心設計保持了主要敘述的集中,同時確保每一課都能立即應用於您的日常工作。結果是一本邏輯流暢的書,保持實踐性、可導航性和技術深度,而不會不斷打斷學習過程。

本書已完全更新至Ruby 4.0.1,確保您理解為什麼Ruby程式設計師在解決問題時有不同的思維方式。

內容概覽

- Ruby的物件導向核心和內建類型
- 如何使用類別、模組和mixins來組織代碼
- 利用正則表達式、檔案I/O和函數式技術

讀者對象

適合希望開始使用Ruby或加深對該語言理解的程式設計師。

作者介紹

David A Black是一位知名的Ruby程式設計師、培訓師、演講者、作者和活動組織者,也是Ruby Central的創始人。Joseph Leo III是Ruby on Rails顧問公司Def Method的創始人和擁有者。

目錄

第一部分
1 啟動您的Ruby素養
2 物件、方法和局部變數
3 使用類別組織物件
4 模組和程式組織
5 預設物件(self)、範圍和可見性
6 控制流技術
第二部分
7 內建基本要素
8 字串、符號和其他標量物件
9 集合和容器物件
10 集合中心:Enumerable和Enumerator
11 正則表達式和基於regexp的字串操作
12 檔案和I/O操作
第三部分
13 物件個體化
14 可調用和可執行物件
15 回調、鉤子和運行時內省
16 Ruby和函數式程式設計

作者簡介

David A. Black is a well-known Ruby programmer, trainer, speaker, author, and event organizer. He was one of the founders of Ruby Central, Inc., the parent organization of the annual international RubyConf.

Joseph Leo III is the founder and owner of Def Method, a New York City-based Ruby on Rails consultancy dedicated to building high-quality, thoughtfully crafted software. He has over 20 years of experience as a software developer, engineering leader, and Ruby community organizer.

作者簡介(中文翻譯)

David A. Black 是一位知名的 Ruby 程式設計師、培訓師、演講者、作者及活動組織者。他是 Ruby Central, Inc. 的創始人之一,該公司是每年舉辦的國際 RubyConf 的母公司。

Joseph Leo III 是 Def Method 的創始人及擁有者,這是一家位於紐約市的 Ruby on Rails 顧問公司,專注於開發高品質、精心設計的軟體。他擁有超過 20 年的軟體開發、工程領導及 Ruby 社群組織的經驗。