We try to keep our books accurate, but sometimes mistakes creep
in. This page lists the errors submitted by our astute readers.
If you've found a new error, please
submit it.
The latest version of the book is P1.0,
released over 2 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.
| PDF |
Paper |
Description |
Found in |
Fixed in |
| All |
All |
#26425: Please, where place I can find solutions for the exercises of this wonderful book?
Thank you!
|
P1.0
|
|
| PDF P |
|
#34196: Want This book--ujjwalahluwalia
|
P1.0
|
|
| ALL |
ALL |
#30636: Here'r answers to the exercise that I compiled, learntoprogramanswers[dot]blogspot[dot]com, I'd love to see what others came up with.--widemine
|
P1.0
|
|
| vii |
|
#29979: On first page of Introduction, third paragraph begins "It has been more than decade." This should read "It has been more than *a* decade"--Brett Barney
|
P1.0
|
|
| 1 |
|
#25353: I purchased this book (PDF Version) last week. I really like the way it's written, particularly since I'm almost a total newb. After getting through 99 bottles of beer (the exercise not my drinking) I ran into the sort exercise. I've been dead in the water for days and can not wrap my head around it.
Suggestion is two fold, totally appreciate assignments and exercises in books, but consider having some answers stuck/tucked away somewhere inside.
This is very frustrating.
--Stuart #25353: I purchased this book (PDF Version) last week. I really like the way it's written, particularly since I'm almost a total newb. After getting ...more...
|
P1.0
|
|
| 1 |
|
#30635: If anyone's interested, I put up solutions to the problems in the book, right here: learntoprogramanswers.blogspot.com
|
P1.0
|
|
| 12 |
|
#29986: In the third bullet-point under "2.4 A Few Things to Try":
". . . be as accurate--or not--you want.)"
should read
". . . be as accurate--or not--*as* you want.)"--Brett #29986: In the third bullet-point under "2.4 A Few Things to Try":
". . . be as accurate--or not--you want.)"
should read
". . . be as accurate--o ...more...
|
P1.0
|
|
| 26 |
|
#29706: There is a Ruby Forum thread that discusses some of the exercises and solutions for the exercises. You may find help here & can add additional questions to this thread to help future students.
ruby-forum.com/topic/60005#new #29706: There is a Ruby Forum thread that discusses some of the exercises and solutions for the exercises. You may find help here & can add additional ...more...
|
P1.0
|
|
|
34 |
#29624: I want to emphasize that this may be MY error as a total newbie and not an error in the book, but I would appreciate a spot check.
On page 34 of Chapter 6, "More About Methods," there is source code as follows:
puts 'What is your full name?'
name = gets.chomp
puts 'Did you know there are ' + name.length.to_s + ' characters'
puts 'in your name, ' + name + '?'
When I run this program, I get the prompt asking me for my name, but then the program just exits back to the command prompt.
I am using Windows Vista, Ruby 1.86.25 and the SCite editor that was packaged along with it.
More than likely I will figure out that I put a + mark in the wrong place. Thanks for reading in any case. I'm really enjoying this book thus far.
Lisa Williams
Placeblogger.com
PS my copy says Third printing, copyright 2007, which wasn't available as an option in the drop down box above.
--Lisa Williams #29624: I want to emphasize that this may be MY error as a total newbie and not an error in the book, but I would appreciate a spot check.
On pag ...more...
|
P1.0
|
|
| 36 |
|
#29987: The marginal comment on this page is garbled:
"Modulus, much like
integer division, might
seem bizarre, but they it
is actually really useful,
often when used with
integer division."
Huh?--Brett #29987: The marginal comment on this page is garbled:
"Modulus, much like
integer division, might
seem bizarre, but they it
is actually really use ...more...
|
P1.0
|
|
| 38 |
|
#31155: The description of the code says "Note that I used rand(101) to get numbers from 0 to 100 and that rand(1) always returns 0." He's making a point there about using rand(100) would give you numbers up to 99. However, in the code example he's referring to, (bottom of the previous page) he actually uses rand(100) in the example he's referring to ... which makes this comment quite funny: "Not understanding the range of possible return values is the biggest mistake I see people make with rand, even professional programmers, and even in finished products you can buy at the store." Just goes to show that it's not always a lack of comprehension at fault. #31155: The description of the code says "Note that I used rand(101) to get numbers from 0 to 100 and that rand(1) always returns 0." He's making a p ...more...
|
P1.0
|
|
| 39 |
|
#31156: I believe that "Suffice it to say" should be "Suffice to say".
|
P1.0
|
|
| 55 |
|
#29819: looping
|
P1.0
|
|
| 71 |
|
#32258: This book is my first foray into any programming language, and I'm finding it extremely readable and helpful. Thank you!
The code example about "tough_var" being defined locally didn't strike me as meaningful at first... until I played around with the order of the code. The impact of local definition was made clear when I ordered it this way:
--code--
tough_var = 'You can\'t even touch my variable!'
def little_pest tough_var
tough_var = nil
puts 'HAHA! I ruined your variable!'
puts tough_var.to_s
end
little_pest tough_var
puts tough_var
--/code--
This defines the variable shown to be modified before the local method, which to my admittedly inexperienced way of thinking is a bigger deal. Since I had to rearrange the code to get the gist of the lesson, thought you might like to know.
Maybe that shows that by this point in the book, you've already equipped me with enough knowledge to be able to figure out through experimentation. :) Thanks again, I'm loving the book. #32258: This book is my first foray into any programming language, and I'm finding it extremely readable and helpful. Thank you!
The code example a ...more...
|
P1.0
|
|
|
79 |
#29156: I have been reading your book, "Learn How to Program" on and off for 2 years.
I don't like the book much because of it's lack of an index -- lazy and inexcusable in a computer book, it's baby-talk babbling example (mind-numbingly dumb), its reference to Civilization III, and its lack of answers and/or more hints in the back to the exercises.
I don't understand, know, or care what Civilization III is. Your confused, muddled attempt at an explanation of this muddies up your book even more. And worlds aren't constructed out of tiles, maybe bathrooms are, but that is neither here nor there. I want to learn Ruby, not how to send 8 idiotic imaginary little men onto tiles to count them... and I still don't know what you're referring to, why they're counting imaginary continents made out of imaginary tiles, or how this could in any way be described as fun or helpful for learning how to program. Maybe if I was 12 years old...but if that's who your book is targeted to it should be stated and the book placed into a different section of bookstores.
I spent a year putting the book down and reading other Ruby books. Sam's Teach Yourself Ruby in 21 days hasn't been updated and many of the exercises don't even work anymore with the current version of Ruby.
After a year, I solved your Grandma problem. (No thanks to you). I'm now stuck on the Roman Numbers problem. I need a lot of hints and help. Since there are no further hints, what am I supposed to do? I admit it, I don't know what to do in the function. Should I just take the hint and realize that I don't measure up as a good programmer?
--Mark #29156: I have been reading your book, "Learn How to Program" on and off for 2 years.
I don't like the book much because of it's lack of an inde ...more...
|
P1.0
|
|
| 103 |
|
#24458: Hi - not sure of this is an error, exactly. But when I run the Photo renaming utility, I get
'rename': Cross-device link - /Volumes/EOS_DIGITAL/DCIM/126CANON/IMG_2650.JPG or Animals01.jpg (Errno::EXDEV)
This is using a USB card reader on a Powerbook G4 on OSX 10.4.6--Richard #24458: Hi - not sure of this is an error, exactly. But when I run the Photo renaming utility, I get
'rename': Cross-device link - /Volumes/EOS_DIGI ...more...
|
P1.0
|
|
|
107 |
#28636: Same as reported earlier in Dec. 2005, but I didn't see the answer for --Greg
|
P1.0
|
|