Errata

Computer Science Programming Basics in Ruby

Errata for Computer Science Programming Basics in Ruby

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 86
Question 6

Question 6 begins "The three witches in Hamlet can brew any potion ... "

The three witches feature in Macbeth rather than Hamlet.

Note from the Author or Editor:
This correction is clear. Please change "Hamlet" with Macbeth as noted in all media forms. Thanks.

Michael O'Sullivan  Jun 05, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 119
exercise 4

I suggest,

"12345".index(2) should read "12345".index("2")
"12345".index(0) should read "12345".index("0")
"12345".index(1) should read "12345".index("1")
"12345".index(5) should read "12345".index("5")

Otherwise the exercise is confusing for the reader - why propose several cases that result in the same error? (although maybe one without " would be instructive)

Note from the Author or Editor:
I suggest that above mentioned 4 lines be replaced with the following:
(Note that some of the lines are not replaced:)

"12345".index("2")
"12345".index("0")
"12345".index(1)
"12345".index("24")

DoubleLife  May 14, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 166
Final book title

Missing 'of' ('of Algorithms') in final book title

Note from the Author or Editor:
Correct. The final title is indeed missing "of". It should read:

Introduction to the Design and Analysis of Algorithms

DoubleLife  May 13, 2013 
Printed
Page 93
top

The 'Gem of Wisdom' regarding bubble sorts is placed within the section describing insertion sorts. It would be better to move this down for better visual clarity.

Note from the Author or Editor:
Good suggestion. Maybe it would be best at the bottom of the page instead of at the top? It would lose consistency with the rest but would be clearer as suggested.

I do not know how it looks in the other formats. Please look as decide. Thanks.

DoubleLife  May 13, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 84
Exercise 1

'Using the array arr' should read 'Using the array a'

Note from the Author or Editor:
That is correct. It should be the "array a" not the "array arr" as noted. The font should remain as is. Thanks.

DoubleLife  May 13, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 64
Example 5-5 line 3

inner 'for' statement on line 3 isn't indented. As an inner loop it should be.

Note from the Author or Editor:
Indeed. the 'f" in "for" on line 3 should line up with the "p" of "put" on line 2. Thanks.

DoubleLife  May 13, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 40
avg_temp equation shown

temp_f should be temp_fall

Note from the Author or Editor:
Actually, the error is on page 39 not 40 in the printed text. That said, it is an error and the line should have:

"temp_fall/4" not "temp_f/4" as noted by the reviewer.

thanks.

DoubleLife  May 13, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 7
Last Paragraph (Exercise 2)

Carl Gauss was a German mathematician (not French).

Note from the Author or Editor:
Of course. Terrible mistake on our part. Please change "French" to "German". Thanks.

Anonymous  May 03, 2013 
Mobi
Page many...
Paragraph endings

The .mobi version of this book appears to be corrupted. Paragraphs are frequently cropped and missing the last few characters. For example, on page 13 the first paragraph follows the "Gem of Wisdom" and should read "= 123, as expected." On the kindle version the paragraph preceeds the gem and reads "= 123, as expect". Another example is the next paragraph which should read "which is, in decimal, 27." but on the kindle I only have "which is, in decimal,"

Note from the Author or Editor:
Please check this -- we had such problems with the Kindle edition as well. Thanks.

Anonymous  May 03, 2013 
Printed, PDF, ePub, Mobi, , Other Digital Version
Page 1
1

Re: "In all cases, the development was from the "glean in the eye" phase, through basic research followed by development, design, certification and prototype."

That would be "gleam in the eye", not "glean in the eye."

Note from the Author or Editor:
Absolutely. This is a typo. As stated, it should be "gleam" not "glean"

Hugh Brown  May 02, 2013