small medium large xlarge

Errata for The dRuby Book

 

The latest version of the book is P1.0, released over 4 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (20-Nov-12)
#50185
PDF page: xiii
In the third paragraph, last sentence, you have used the word "discovering" when you wanted to use the word "discover". It should say, "... as you re...more...
  • Reported in: P1.0 (22-Mar-12)
#48972
PDF page: 7
Under "1.2 Building the Reminder Application," the three methods of the Reminder class are listed: "It has three methods: Add, delete, and to_a." The ...more...
  • Reported in: P1.0 (22-Mar-12)
#48975
PDF page: 9
My "r = DRbObject.new_with_uri('druby://localhost:12345')" call hung, but using a --noreadline option to irb didn't fix it (and I didn't need the opti...more...
  • Reported in: P1.0 (01-Apr-14)
#76595
PDF page: 33

In the page 33, IDL is explained as Interactive Data Language, instead Interface Definition Language.

--Aaron

  • Reported in: P1.0 (09-May-12)
#49296
Paper page: 34-39
code examples miss "require 'Date'" statement at the top, otherwise error ".../shipping_notify.rb:60:in `<main>': uninit ialized constant Date (NameE...more...
  • Reported in: P1.0 (17-May-12)
#49338
PDF page: 53

In the code example, it says "oops", though other lines has "oops," and "oops.". These comma and period are not necessary.--Makoto Inoue

  • Reported in: P1.0 (02-May-12)
#49246
Paper page: 63

change:
>> str.__id__
=&gt; 358800978
to:
>> str.__id__
=> 358800978
--you_ssk

  • Reported in: P1.0 (17-May-12)
#49339
PDF page: 69

From
=&gt;&gt; #<IO:0x007ffe7206fd10>

To

=> #<IO:0x007ffe7206fd10>--Makoto Inoue

  • Reported in: P1.0 (23-May-12)
#49366
PDF page: 71

In the second-to-last paragraph, "When you want to include it in a instance, " should read "...an instance".--RR

  • Reported in: P1.0 (17-May-12)
#49340
PDF page: 73

From

DRBUnknown#reload

To

DRbUnknown#reload--Makoto Inoue

  • Reported in: P1.0 (23-May-12)
#49367
PDF page: 74

Last paragraph: "Why do we need such functionalities?" should read "... functionality?"--RR

  • Reported in: P1.0 (23-May-12)
#49368
PDF page: 81

Should the run state have double quotes around it?--RR

  • Reported in: P1.0 (17-May-12)
#49341
PDF page: 82
exit - Terminate the thread. wakeup - Change the thread in running mode. run - Get the thread into running mode. Switch thread. raise - Raise excep...more...
  • Reported in: P1.0 (17-May-12)
#49348
PDF page: 86

Explanation about Thread.exclusive and Thread.critical is wrong
forums.pragprog.com/forums/198/topics/10553--Makoto Inoue

  • Reported in: P1.0 (22-Apr-12)
#49179
PDF page: 129

Duplicated sentence on second and third paragraph:

"Consider a program ... completed phase n."--Romeu

  • Reported in: P1.0 (17-May-12)
#49342
PDF page: 130

At tsstruct.rb

From

ensure @ts.write(tuple) if tuple

To

ensure
@ts.write(tuple) if tuple--Makoto Inoue

  • Reported in: P1.0 (29-Mar-12)
#49013
PDF page: 136
The figure 36 description is reversed. It should say down is equivalent to take and up is equivalent to write. Text currently says: Figure 36—The...more...
  • Reported in: P1.0 (17-May-12)
#49343
PDF page: 162

From

Rwiki (a dRuby-powered wiki)

To

RWiki (a dRuby-powered wiki) --Makoto Inoue

  • Reported in: P1.0 (17-May-12)
#49344
PDF page: 162

From

similar to Rail’s view helper)

To

similar to Rails' view helper)--Makoto Inoue

  • Reported in: P1.0 (17-May-12)
#49345
PDF page: 173

# fork.rb

result = 0
pid = fork do
result += 1
end Process::waitpid(pid) p result

Missing indentation

--Makoto Inoue

  • Reported in: P1.0 (27-Mar-12)
#48999
PDF page: 221

Page 221 - CG instead of GC -- from customer feedback.--Ellie @ Support

  • Reported in: P1.0 (17-May-12)
#49346
PDF page: 235

From

>> >osx[:msg] = 'linux box to osx'

To

>> osx[:msg] = 'linux box to osx'

--Makoto Inoue

  • Reported in: P1.0 (17-May-12)
#49347
PDF page: 239

From

Changes URI to become method call to GW and W rap

To

Changes URI to become method call to GW and Wrap--Makoto Inoue