Learn to Program / Edition 2

Paperback (Print)
Rent from BN.com
(Save 66%)
Est. Return Date: 12/24/2014
Used and New from Other Sellers
Used and New from Other Sellers
from $7.19
Usually ships in 1-2 business days
(Save 71%)
Other sellers (Paperback)
  • All (22) from $7.19   
  • New (9) from $11.99   
  • Used (13) from $7.19   


Programming used to be pretty hard. You needed to know a lot of arcane details to make a computer do anything useful. But then again, Model T cars used to come with two full pages of starting instructions. Today, you just turn the key, and the engine fires. Fortunately, cars evolved and became easier to use. Programming has become easier as well.

This book shows you how to write programs using Ruby, a popular, modern, and easy-to-use programming language. Unlike some other current programming languages, there's no old-fashioned Model T baggage here. Just turn the key, and off you go.

Starting with small, simple, one-line programs, you'll see how to advance to fully structured, real-life programs. You'll learn the same technologies and techniques used to drive modern dynamic websites and large, professional applications.

That makes now a good time to Learn to Program.

It's now easier to learn to write one's own computer software than ever before. Now everyone can write programs for themselves--no previous experience is necessary--with the help of this thorough but lighthearted book.

Read More Show Less

Editorial Reviews

From the Publisher
"Thanks for “Learn to Program”. My 10 year old son picked it up tonight, opened up my old MBP, and just started going at it. It’s fun to see him so excited about something that I love and am lucky enough to make a living at. Though my son is in our school’s gifted and talented program, they have not yet delved into computers in much detail. “Learn to Program” is turning out to be a fun way to share my excitement about programming with him."

—Scott Meade

Read More Show Less

Product Details

  • ISBN-13: 9781934356364
  • Publisher: Pragmatic Programmers, LLC, The
  • Publication date: 4/1/2009
  • Series: Facets of Ruby Series
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 194
  • Sales rank: 253,454
  • Product dimensions: 7.40 (w) x 8.90 (h) x 0.80 (d)

Meet the Author

Chris Pine first discovered the programming language Ruby in early 2001 and immediately began using it to build tools for his day job: programming computer games. After hours, he volunteered with gifted children teaching them advanced mathematics. With Ruby, he began to teach his students programming as well. Once he saw how easily his students learned advanced programming concepts in this environment, he decided to expand his teaching materials into a book. Chris enjoys board games and juggling, and lives with his darling wife and two darling children in darling Oslo, Norway. He is very happy.

Read More Show Less

Table of Contents

1 Getting started 1
2 Numbers 9
3 Letters 13
4 Variables and assignment 19
5 Mixing it up 23
6 More about methods 31
7 Flow control 43
8 Arrays and iterators 59
9 Writing your own methods 67
10 There's nothing new to learn in chapter 10 81
11 Reading and writing, saving and loading, Yin and ... 99
12 New classes of objects 111
13 Creating new classes, changing existing ones 121
14 Blocks and procs 133
15 Beyond this fine book 145
Read More Show Less

Customer Reviews

Average Rating 4
( 1 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Posted October 3, 2009

    Interesting and fun for the beginner programmer

    a good and fun read if you want to start programming with an easy language :)

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)