Skip to Main Content
Learn to Program, 2nd Edition
book

Learn to Program, 2nd Edition

by Chris Pine
March 2009
Intermediate to advanced content levelIntermediate to advanced
194 pages
4h
English
Pragmatic Bookshelf
Content preview from Learn to Program, 2nd Edition

Did It Work?

Maybe you didn’t need any help installing Ruby, so you skipped Chapter 1. No problem.

Maybe you’ve done a little programming before, so you skipped Chapter 2. That’s fine.

The only thing is that you missed some stuff there that you didn’t really need until now. If you haven’t been running your programs from the command line, then you’ll almost certainly have problems with gets, and we’re going to be using it a lot from now on. So, if you saved your program as example.rb, you should really run your program by typing ruby example.rb into your command line. If you’re having trouble getting around on your command line, check out Chapter 1, Getting Started.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn to Program, 3rd Edition

Learn to Program, 3rd Edition

Chris Pine
The Book of Ruby

The Book of Ruby

Huw Collingbourne

Publisher Resources

ISBN: 9781680500172Errata