Book Cover
E-book

Title Learn to Program
Edition 2nd ed
Published Pragmatic Bookshelf, The [Imprint] April 2009 Raleigh : Pragmatic Programmers, LLC, The LaVergne : Ingram Publisher Services [distributor]

Copies

Description 1 online resource (194 pages)
Series Facets of Ruby Ser
Facets of Ruby Ser
Contents Cover; Table of Contents; Preface to the Second Edition; Introduction; What Is Programming?; Programming Languages; The Art of Programming; 1. Getting Started; Windows; Mac OS X; Linux; 2. Numbers; Did It Work?; Introduction to puts; Integer and Float; Simple Arithmetic; A Few Things to Try; 3. Letters; String Arithmetic; 12 vs. '12'; Problems; 4. Variables and Assignment; 5. Mixing It Up; Conversions; Another Look at puts; The gets Method; Did It Work?; The chomp Method; A Few Things to Try; Mind Your Variables; 6. More About Methods; Fancy String Methods; A Few Things to Try; Higher Math
More ArithmeticRandom Numbers; The Math Object; 7. Flow Control; Comparison Methods; Branching; Looping; A Little Bit of Logic; A Few Things to Try; 8. Arrays and Iterators; The Method each; More Array Methods; A Few Things to Try; 9. Writing Your Own Methods; Method Parameters; Local Variables; Experiment: Duby; Return Values; A Few Things to Try; 10. There's Nothing New to Learn in Chapter 10; Recursion; Rite of Passage: Sorting; A Few Things to Try; One More Example; A Few More Things to Try; 11. Reading and Writing, Saving and Loading, Yin andâ#x80;ŒSomething Else; Doing Something
The Thing About Computersâ#x80;ŒSaving and Loading for Grown-Ups; YAML; Diversion: Double-Quoted Strings; Back to Our Regularly Scheduled Programming; Renaming Your Photos; A Few Things to Try; 12. New Classes of Objects; The Time Class; A Few Things to Try; The Hash Class; Ranges; Stringy Superpowers; A Few More Things to Try; Classes and the Class Class; 13. Creating New Classes, Changing Existing Ones; A Few Things to Try; Creating Classes; Instance Variables; new vs. initialize; Baby Dragon; A Few More Things to Try; 14. Blocks and Procs; Methods That Take Procs; Methods That Return Procs
Passing Blocks (Not Procs) into MethodsA Few Things to Try; 15. Beyond This Fine Book; irb: Interactive Ruby; The PickAxe: Programming Ruby; Ruby-Talk: The Ruby Mailing List; Tim Toady; THE END; A1. Possible Solutions; Exercises from Chapter 2; Exercises from Chapter 5; Exercises from Chapter 6; Exercises from Chapter 7; Exercises from Chapter 8; Exercises from Chapter 9; Exercises from Chapter 10; Exercises from Chapter 11; Exercises from Chapter 12; Exercises from Chapter 13; Exercises from Chapter 14; Index
Summary Annotation Printed in full color. For this new edition of the best-selling Learn to Program, Chris Pine has taken a good thing and made it even better. First, he used the feedback from hundreds of reader e-mails to update the content and make it even clearer. Second, he updated the examples in the book to use the latest stable version of Ruby, and also to use code that looks more like real-world Ruby code, so that people who have just learned to program will be more familiar with common Ruby techniques. Not only does the Second Edition now include answers to all of the exercises, it includes them twice. First you'll find the "how you could do it" answers, using the techniques you've learned up to that point in the book. Next you'll see "how Chris Pine would do it": answers using more advanced Ruby techniques, to whet your appetite as well as providing sort of a "Rosetta Stone" for more elegant solutions.Computers are everywhere, on every desk, in your iPod, cell phone, and PDA. To live well in the 21st century, you need to know how to make computers do things. And to really make computers do what you want, you have to learn to program. Fortunately, that's easier now than ever before. Chris Pine's book will teach you how to program. You'll learn to use your computer better, to get it to do what you want it to do. Starting with small, simple one-line programs to calculate your age in seconds, you'll see how to advance to fully structured, real programs. You'll learn the same technology used to drive modern dynamic websites and large, professional applications. It's now easier to learn to write your own computer software than it has ever been before. Now everyone can learn to write programs for themselves--no previous experience is necessary. Chris takes a thorough, but light-hearted approach that teaches you how to program with a minimum of fuss or bother. Printed in full color
Audience Scholarly & Professional The Pragmatic Programmers, LLC
Notes Copyright © Pragmatic Bookshelf
Subject Object-oriented programming (Computer science)
Ruby (Computer program language)
COMPUTERS -- Programming Languages -- Ruby.
Ruby (Computer program language)
Object-oriented programming (Computer science)
Form Electronic book
Author Pine, Chris
ISBN 9781934356364
1934356360
9781680503814
1680503812