The Pickaxe book, named for the tool on the cover, is the definitive reference to Ruby, a highly-regarded, fully object-oriented programming language. This Second Edition has more than 200 pages of new content, and substantial enhancements to the original, covering all the new and improved language features of Ruby 1.8 and standard library modules.

Third Edition is Now Available

Ruby is in a period of transition. Ruby 1.8 is the current release for production use. A new version, Ruby 1.9, is available for those who like to live on the leading edge. Ruby 1.9 is an incremental change, but does include some incompatibilities with 1.8. If you want a paper book now, or if you prefer reading about the stable version of Ruby, then the book on this page is for you. If instead you want to read about the new features in 1.9, then check out the Third Edition.

Programming Ruby: The Pragmatic Programmer's Guide, Second Edition
864 pages, Oct 2004
ISBN: 978-0-9745140-5-5

Buy Now

 

About this Book

Would you like to go from first idea to working code much, much faster? Do you currently spend more time satisfying the compiler instead of your clients or end users? Are you frustrated with demanding languages that seem to get in your way, instead of getting the work done? If so, then we’ve got a language and book for you!

Ruby is a fully object-oriented language, much like the classic object-oriented language, Smalltalk. Like Smalltalk, it is dynamically typed (as opposed to Java or C++), but unlike Smalltalk, Ruby features the same conveniences found in modern scripting languages such as Perl and Python.

The combination of the power of a pure object-oriented language with the convenience of a scripting language makes Ruby a favorite tool of intelligent, forward-thinking programmers.

The Pickaxe contains four major sections:

  • An acclaimed tutorial on using Ruby.
  • The definitive reference to the language.
  • Complete documentation of all built-in classes, modules, and methods.
  • Complete descriptions of all 98 standard libraries.

Readers of the First Edition will appreciate the new and expanded content, including: enhanced coverage of installation, packaging, documenting Ruby source code, threading and synchronization, and enhancing Ruby’s capabilities using C-language extensions. Programming for the world-wide web is easy in Ruby with new chapters on XML/RPC, SOAP, distributed ruby, templating systems and other web services. There’s even a new chapter on unit testing.

This is the definitive reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including more than 250 significant changes since the First Edition). Coverage of other features has grown tremendously, including details on how to harness the sophisticated capabilities of irb, so programmers can dynamically examine and experiment with running code.

  • The definitive reference manual for Ruby programmers.
  • Up-to-date and expanded for Ruby version 1.8.
  • Complete documentation of all built-in classes, modules, and methods.
  • Complete descriptions of all 98 standard libraries.
  • 200+ pages of new content in this edition.
  • NEW: Learn more about Ruby’s web tools, unit testing, and programming philosophy.

Contents and Extracts

About the Author

Dave Thomas is a cornerstone of the Ruby community, and is personally responsible for many of its innovative directions and initiatives. He and original co-author Andy Hunt are founders of the Pragmatic Programmers and the Pragmatic Bookshelf. Chad Fowler is co-director of Ruby Central, Inc., and remains an active, driving force in the Ruby community.