Shop now Shop now Shop now Shop Black Friday Deals Refreshed in Fashion Cloud Drive Photos Shop now Learn More Shop now DIYED Shop now Shop Fire Shop Kindle Paperwhite Listen in Prime Shop Now Shop now

Customer Reviews

4.4 out of 5 stars8
4.4 out of 5 stars
5 star
4 star
3 star
2 star
1 star
Format: PaperbackChange
Price:£12.53+ Free shipping with Amazon Prime
Your rating(Clear)Rate this item

There was a problem filtering reviews right now. Please try again later.

10 of 10 people found the following review helpful
on 18 June 2009
No mucking about: Chapter 1 tells you how to download Ruby onto your computer. It's a reasonably painless process, albeit not quite as simple as just clicking on a "Download Ruby" button. Chapter 2 and you are straight into writing your first program:

Puts 1 + 2

When you run it by pressing ENTER, you will get ..... drumroll .... 3

"Puts 3*2" will give you 6, and "Puts 3/2" will give you.... no, I'll let you find out for yourself.

From this simple beginning, Chris Pine helps you steadily build a remarkable command of programming (a beginner's command anyway). His language of choice is "Ruby", elegant and simple, yet remarkably flexible & powerful. I had previously bought myself a "Teach Yourself Java" book. But I couldn't get on with Java. Did a programming language really have to be so clumsy, so tortuous? (And I understand Java is simpler than most). Did there not exist a cleaner, more intuitive language? So I did some research on the net, which is how I first came across Ruby. But that's Ruby. What about the book?

Unlike pretty much every other programming book I've ever bought/read, Chris (he's not the "Mr Pine" type) writes as if he is teaching you how to program - rather than how to pass an exam in programming. Rather than blinding you with science, he just helps you learn by doing. He is like the best teacher you (n)ever had, there at your elbow with a word of encouragement or support when you need it, standing back letting you get on with it when you don't. About half way through the book, I suddenly realised - "Wow, this is what they mean by Object Oriented" I can see now why they make such a fuss about it. I don't know I could write a textbook explanation of what it is, but I understand it. And that's more important. To me anyway.

The book contains many exercises such as writing a program to convert dates into Roman Numerals. The exercises are probably the most valuable thing in the book. You'll learn far more by doing them than by reading the main text - though without the main text you wouldn't even get started of course.

On pages 86/87 Chris considers the challenge of how to calculate the area of a (randomly-generated) continent (for the computer game "Civilization"). Chris represents the world map with arrays. An array is a sort of list, for example you could have an array of odd numbers between 7 and 13 inclusive - it would have 4 elements. Ruby lets you manipulate such arrays - for example changing or sorting the elements, adding new elements, etc. Chris then shows how to use a technique you'll learn about called "Recursion" to calculate the area of a continent on the map. He then points out that his program will run into problems if the continent touches the edge of the map - which it often will. He challenges you to come up with a way to solve that problem.

You can further extend your code to cover a cylindrical world, or even a toroidal (doughnut-shaped) world.

I should add that the exercises are very carefully chosen; they help you practise what you've just read, but invariably require you to extend your thinking beyond the worked example. And they are nicely paced, I found nothing too easy or impossibly difficult. Chris never spoon-feeds you, he always makes you work. But he never sets an unrealistic challenge.

For the sake of balance, I'd better find something negative to say: Chris Pine is clearly a Nice Guy, but sometimes the examples he uses - "Cows go moo" are a bit babyish for my taste. This shouldn't put you off though. There's probably more padding than the average computer book, but with a subject as dry as programming, maybe a bit of padding helps the flow.

The second edition is greatly expanded (216 pages compared to 149). The biggest change is the addition of answers. Perhaps Chris got fed up of replying to "Help, I'm stuck!" emails. I myself will admit to occasionally feeling frustrated when I was temporarily stuck (I own the no-answers first edition). But here's the thing: Without answers to turn to, I couldn't take the easy option, I had to work it out for myself. Which forced me to think harder, and so made me a better programmer. But I can't really claim the addition of answers makes the second edition inferior.

I have since bought half a dozen more Ruby/Rails books, including the encyclopaedic reference "Pickaxe" Programming Ruby: The Pragmatic Programmers' Guide (3rd Edition) (930 pages, don't drop it on your foot). My favourite of these additional purchases is probably the 358-page Ruby Programming for the Absolute Beginner. Okay, it covers much the same ground (and more, it has 358 pages) as L2P, but usually from a different angle. I found having another perspective on Ruby helped my learning process - things I had not fully understood in L2P became clearer when explained differently. But this is not to say that I think RP4TAB is a better book than L2P; it isn't (IMO). It's just that having something explained two different ways by two different people can often make things easier to understand than would be the case if you had only the one explanation to go by. Similar comments apply for the 630-page (NB it would seem that the thicker they get, the more textbooky they get) Beginning Ruby: From Novice to Professional, 2nd Edition (Expert's Voice in Open Source).

"Learn to Program" may not be the most comprehensive book on Ruby. In fact it's probably the least comprehensive. But for a beginner's guide to Ruby (and probably to programming generally), "Learn to Program" is easily the most accessible I have found.
11 commentWas this review helpful to you?YesNoReport abuse
5 of 5 people found the following review helpful
on 1 August 2009
Excellent little book to teach you the fundamentals of programming. It uses Ruby as the teaching tool but all aspects are transferable to other programming languages. Writing style is subtly witty without being annoying. Lots of easy to follow examples to illustrate points. Also has a section to show you how a pro would write the code to make it just that little bit cleaner - which is very informative! I'd definitely recommend this to anyone wanting to learn the basics of programming.
0CommentWas this review helpful to you?YesNoReport abuse
1 of 1 people found the following review helpful
on 17 March 2015
Take this from a new programmer - this book is well written and usable. Recommended! There is an e-version as well...

I will point out that a lot of info can be found online but it is very useful to have a decent starting resource as the online tutorials can get overwhelming just because there are so many!
0CommentWas this review helpful to you?YesNoReport abuse
on 18 May 2013
Well-written and easy to understand. Given the fact that at work I cannot use the internet for other than work stuff, I wanted something to keep my Ruby learning streak alive, when I have an easy day at work, which is rather often nowadays. It's good for that, it's also good for those who are 100% new to programming (this is not me, I have written php, html, css, python and even a wee bit of c as well in the past), but if you really want to get into Ruby I sincerely recommend reading the book while also doing the Ruby course (free) on Codecademy.
0CommentWas this review helpful to you?YesNoReport abuse
on 27 August 2014
Very well written book, excellent if you are starting out your Ruby adventure!

I bought this book with a bit of background knowledge, but even so, I learnt a lot. They way Chris writes this book, and the examples he comes up with, makes it easily digestible and you will breeze through it coming out the other side with a lot more Ruby knowledge than before.

I would definitely recommend this book to everyone starting with Ruby
0CommentWas this review helpful to you?YesNoReport abuse
on 24 June 2013
Great book. Enjoyable writing style and solid content. Exercises are fun and skills used to solve them are widely applicable.
0CommentWas this review helpful to you?YesNoReport abuse
0 of 1 people found the following review helpful
on 24 November 2012
I haven't completed this book yet (about 3/4 way through) but I am finding it to be a good introduction to Ruby, read Ruby and not programming. This book will teach you the basics of Ruby but it won't teach you how to be or think like a programmer, there are other books out there for this purpose (Think Like A Programmer). So the book title is a little misguiding in my view.

If you are an experienced programmer but never used Ruby then I would still recommend this book as it's quite clearly explained but don't expect too much out of this book as it is short. Use it as a quick and dirty introduction but truth be told much of what this book covers can be had from good online sources. Online sources of information can often lack structure however, particularly if they are freely accessible this is why I would still recommend this book.

I'm coming from PHP to ruby and at first Ruby can be confusing. Although Ruby has all the fundamentals of any other language they way you type the syntax is quite different to that of any C derived language so having a clear explanation of what's going on in this book is great. However once your brain has reprogrammed it's self to think in Ruby it's hard not to see the value or advantages to it's syntax.

If you want to learn Ruby On Rails then start with this book and when your half way through go on to the Ruby on Rails Tutorial, Michael Hartl book as it will confuse you other wise I think (Note: this book is freely available in HTML format from the books website). It's good to have a basic grounding of Ruby first in my opinion as it will be easier to distinguish between Rails and Ruby in that book.
0CommentWas this review helpful to you?YesNoReport abuse
0 of 1 people found the following review helpful
on 12 March 2013
it is a good way to start learing ruby on rils. i will definitely recomend this book many more people
0CommentWas this review helpful to you?YesNoReport abuse
Customers who viewed this item also viewed

The Well-Grounded Rubyist
The Well-Grounded Rubyist by David A. Black (Paperback - 4 July 2014)

Send us feedback

How can we make Amazon Customer Reviews better for you?
Let us know here.

Sponsored Links

  (What is this?)
Video tutorials for Ruby. Get Started.
Join 11 Week Coding Boot Camp Under Best Developer Community. Call Now!
5 Courses + 1 Capstone Project. Create Full-Stack Web Applications!