View Review Details
| Book: |
|
Learning Ruby |
| Subject: |
|
I want my money back |
| Date: |
|
2008-01-01 14:34:29 |
| From: |
|
ShiroNanami
|
|
|
When you have code like this:
[An example of rolling 2 dices]
r_1 = rand(6); r_2 = rand(6)
r1 = r1>0?r_1:1; r2 = r2>0?r_2:6
And a comment like this:
"...a little fancy footwork to make sure it does not return 0..."
These are signs that you just got duped.
Obviously the author isn't well-versed in Ruby.
No feedback, lots of errors, low on technical.
More importantly, this thin book has a price of a THICK book.
|
-
I want my money back, January 09 2008
Submitted by Anonymous Reader [Respond | View]
Thank you. These lines will be replaced with the following in the next edition or printing:
r1 = rand(6) + 1
r2 = rand(6) + 1
total = r1 + r2
Thanks to Adrián Mugnolo of Buenos Aires for this improvement. It should have been obvious to me. Feel free to contact me Shiro directly through my author page:
http://www.oreillynet.com/pub/au/1365
|
| |