# \#book-eloquent-ruby-second-edition

**URL:** https://forum.devtalk.com/tag/book-eloquent-ruby-second-edition/3432.md

[Latest](https://forum.devtalk.com/latest.md) · [Categories](https://forum.devtalk.com/categories.md) · [Tags](https://forum.devtalk.com/tags.md)

---

## [Eloquent Ruby, Second Edition (PragProg)](https://forum.devtalk.com/t/eloquent-ruby-second-edition-pragprog/220623)

<div class="topic-metadata">

**Author:** [@PragmaticBookshelf](https://forum.devtalk.com/u/PragmaticBookshelf)\
**Replies:** 8\
**Last updated:** [27 July 2026 08:57 UTC](https://forum.devtalk.com/t/eloquent-ruby-second-edition-pragprog/220623 "2026-07-27T08:57:31Z")

</div>

Write elegant Ruby code—not just correct, but idiomatic. Go beyond the vocabulary and syntax and learn to express yourself with eloquence. Russ Olsen @russolsen Edited by Michael Swaine @michaelswaine Write better…

---

## [Eloquent Ruby, Second Edition: Incorrect variable name in code example (Page 90)](https://forum.devtalk.com/t/eloquent-ruby-second-edition-incorrect-variable-name-in-code-example-page-90/237933)

<div class="topic-metadata">

**Author:** [@yedhukrishnan](https://forum.devtalk.com/u/yedhukrishnan)\
**Replies:** 1\
**Last updated:** [18 April 2026 15:31 UTC](https://forum.devtalk.com/t/eloquent-ruby-second-edition-incorrect-variable-name-in-code-example-page-90/237933 "2026-04-18T15:31:44Z")

</div>

The code starts with this: publisher = Publisher.last But the code after uses the variable p if p in {authors: \[\]} puts "#{p.name} has no authors!" end It has to be publisher. The code examples after this also uses…

---

## [Eloquent Ruby, Second Edition: B3.0 typo missing g in jaron pdf page 35](https://forum.devtalk.com/t/eloquent-ruby-second-edition-b3-0-typo-missing-g-in-jaron-pdf-page-35/233617)

<div class="topic-metadata">

**Author:** [@mikestok](https://forum.devtalk.com/u/mikestok)\
**Replies:** 1\
**Last updated:** [26 February 2026 17:55 UTC](https://forum.devtalk.com/t/eloquent-ruby-second-edition-b3-0-typo-missing-g-in-jaron-pdf-page-35/233617 "2026-02-26T17:55:20Z")

</div>

But if you do have a multiline string, you should consider using a here document. A here document–or heredoc, to use the jaron–allows you to create a (usually lengthy) string by sticking it right in your code: jaron s…

---

## [Eloquent Ruby, Second Edition: safe navigation explanation (page 44)](https://forum.devtalk.com/t/eloquent-ruby-second-edition-safe-navigation-explanation-page-44/224409)

<div class="topic-metadata">

**Author:** [@lucashaley](https://forum.devtalk.com/u/lucashaley)\
**Replies:** 1\
**Last updated:** [14 December 2025 01:38 UTC](https://forum.devtalk.com/t/eloquent-ruby-second-edition-safe-navigation-explanation-page-44/224409 "2025-12-14T01:38:28Z")

</div>

It would be excellent to have a little more explanation about why the code returns false for the last example in the section: docs&.​first​&.​words​&.​first​&.​reverse.​

---

## [Eloquent Ruby, Second Edition: errata page 19 of eloquent-ruby-second-edition\_B1.0.pdf](https://forum.devtalk.com/t/eloquent-ruby-second-edition-errata-page-19-of-eloquent-ruby-second-edition-b1-0-pdf/225095)

<div class="topic-metadata">

**Author:** [@mduregon](https://forum.devtalk.com/u/mduregon)\
**Replies:** 1\
**Last updated:** [14 December 2025 01:34 UTC](https://forum.devtalk.com/t/eloquent-ruby-second-edition-errata-page-19-of-eloquent-ruby-second-edition-b1-0-pdf/225095 "2025-12-14T01:34:25Z")

</div>

Title: eloquent-ruby-second-edition\_B1.0.pdf Example: page 19 /All of the In the Wild examples have been updated to reflect the code that is actually running lose in the world today/s/lose/loose/
