March 2009
Intermediate to advanced
194 pages
4h
English
| 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 Arithmetic |
| Random 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 ... |