Home Page Icon
Home Page
Table of Contents for
Title Page
Close
Title Page
by Chris Pine
Learn to Program, 2nd Edition
Learn to Program
Copyright
For the Best Reading Experience...
Table of Contents
Preface to the Second Edition
Introduction
What Is Programming?
Programming Languages
The Art of Programming
Chapter 1: Getting Started
Windows
Mac OS X
Linux
Chapter 2: Numbers
Did It Work?
Introduction to puts
Integer and Float
Simple Arithmetic
A Few Things to Try
Chapter 3: Letters
String Arithmetic
12 vs. ’12’
Problems
Chapter 4: Variables and Assignment
Chapter 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
Chapter 6: More About Methods
Fancy String Methods
A Few Things to Try
Higher Math
More Arithmetic
Random Numbers
The Math Object
Chapter 7: Flow Control
Comparison Methods
Branching
Looping
A Little Bit of Logic
A Few Things to Try
Chapter 8: Arrays and Iterators
The Method each
More Array Methods
A Few Things to Try
Chapter 9: Writing Your Own Methods
Method Parameters
Local Variables
Experiment: Duby
Return Values
A Few Things to Try
Chapter 10: 10:
Recursion
Rite of Passage: Sorting
A Few Things to Try
One More Example
A Few More Things to Try
Chapter 11: Reading and Writing, Saving and Loading, Yin and…Something Else
Doing Something
The Thing About Computers…
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
Chapter 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
Chapter 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
Chapter 14: Blocks and Procs
Methods That Take Procs
Methods That Return Procs
Passing Blocks (Not Procs) into Methods
A Few Things to Try
Chapter 15: Beyond This Fine Book
irb: Interactive Ruby
The PickAxe: Programming Ruby
Ruby-Talk: The Ruby Mailing List
Tim Toady
THE END
Appendix 1: Possible Solutions
2:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
You May Be Interested In…
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Learn to Program
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset