The Ruby Way: Solutions and Techniques in Ruby Programming by Hal Fulton, Andre Arko |, Paperback | Barnes & Noble
The Ruby Way: Solutions and Techniques in Ruby Programming

The Ruby Way: Solutions and Techniques in Ruby Programming

by Hal Fulton, Andre Arko
     
 

View All Available Formats & Editions

Ruby is an agile object-oriented language, borrowing some of the best features from LISP, Smalltalk, Perl, CLU, and other languages. Its popularity has grown tremendously in the five years since the first edition of this book.

The Ruby Way takes a “how-to” approach to Ruby programming with the bulk of the material consisting of more than 400

Overview

Ruby is an agile object-oriented language, borrowing some of the best features from LISP, Smalltalk, Perl, CLU, and other languages. Its popularity has grown tremendously in the five years since the first edition of this book.

The Ruby Way takes a “how-to” approach to Ruby programming with the bulk of the material consisting of more than 400 examples arranged by topic. Each example answers the question “How do I do this in Ruby?” Working along with the author, you are presented with the task description and a discussion of the technical constraints. This is followed by a step-by-step presentation of one good solution. Along the way, the author provides detailed commentary and explanations to aid your understanding.

Coverage includes

• An overview of Ruby, explaining terminology and basic principles

• Operations on low-level data types (numbers, strings, regular expressions, dates)

• The new regular expression engine (Oniguruma)

• Internationalization (I18N) and message catalogs in Ruby

• Operations on hashes, arrays, and other data structures such as stacks, trees, and graphs

• Working with general I/O, files, and persistent objects

• Database coverage including MySQL, SQLite, Oracle, DBI, and more

• Ruby-specific techniques in OOP and dynamic programming

• Graphical interfaces in Ruby (Tk, GTK+, Fox, and Qt)

• Working with Ruby threads for lightweight multitasking

• Everyday scripting and system administration in Ruby

• Working with image files, PDFs, YAML, XML, RSS, and Atom

• Testing, debugging, profiling, and packaging Ruby code

• Low-level network programming and client-server interaction

• Web development tools including Rails, Nitro, Wee, IOWA, and more

• Working with distributed Ruby, Rinda, and Ring

• Ruby development tools such as IDEs, documentation tools, and more

The source code for the book can be downloaded from www.rubyhacker.com

Hal Fulton has worked for over 15 years with variousforms of Unix, including AIX, Solaris, and Linux. He was first exposed to Ruby in 1999, and in 2001 he began work on the first edition of this book–the second Ruby book published in the English language. He has attendednumerous Ruby conferences and has given presentations at several of those, including the first European Ruby Conference.

He has two degrees in computer science from the University of Mississippi and taught computer science for four years before moving to Austin, Texas to work as a contractor for variouscompanies, including IBM Austin. Hal currently works at Broadwing Communications in Austin, Texas, maintaining a large data warehouse and related telecom applications, working daily with C++, Oracle, and, of course, Ruby.

Editorial Reviews

From the Publisher

Praise for The Ruby Way, Third Edition

“Sticking to its tried and tested formula of cutting right to the techniques the modern day Rubyist needs to know, the latest edition of The Ruby Way keeps its strong reputation going for the latest generation of the Ruby language.”

Peter Cooper

Editor of Ruby Weekly

“The authors’ excellent work and meticulous attention to detail continues in this latest update; this book remains an outstanding reference for the beginning Ruby programmer– as well as the seasoned developer who needs a quick refresh on Ruby. Highly recommended for anyone interested in Ruby programming.”

Kelvin Meeks

Enterprise Architect

Praise for Previous Editions of The Ruby Way

“Among other things, this book excels at explaining metaprogramming, one of the most interesting aspects of Ruby. Many of the early ideas for Rails were inspired by the first edition, especially what is now Chapter 11. It puts you on a rollercoaster ride between ‘How could I use this?’ and ‘This is so cool!’ Once you get on that rollercoaster, there’s no turning back.”

David Heinemeier Hansson

Creator of Ruby on Rails,

Founder at Basecamp

“The appearance of the second edition of this classic book is an exciting event for Rubyists–and for lovers of superb technical writing in general. Hal Fulton brings a lively erudition and an engaging, lucid style to bear on a thorough and meticulously exact exposition of Ruby. You palpably feel the presence of a teacher who knows a tremendous amount and really wants to help you know it too.”

David Alan Black

Author of The Well-Grounded Rubyist

“This is an excellent resource for gaining insight into how and why Ruby works. Assomeone who has worked with Ruby for several years, I still found it full of new tricks and techniques. It’s accessible both as a straight read and as a reference that one can dip into and learn something new.”

Chet Hendrickson

Agile software pioneer

“Ruby’s a wonderful language–but sometimes you just want to get something done. Hal’s book gives you the solution and teaches a good bit about why that solution is good Ruby.”

Martin Fowler

Chief Scientist, ThoughtWorks

Author of Patterns of Enterprise Application Architecture

The Barnes & Noble Review
Ruby's early evangelists responded passionately to its simplicity, transparency, power, and sense of fun. More recently, many are discovering Ruby through web frameworks like Rails. Whatever's brought you to Ruby, The Ruby Way, Second Edition will help you make the most of it.

A seminal text in Ruby's early days, it's been revamped from top to bottom. The goal hasn't changed, though: to provide superior code examples that solve the problems you're most likely to encounter. Just look up a function or task, and you'll find the methods, classes, and code needed to handle it.

New chapters address data formats (including XML and RSS), testing/debugging, packaging/distribution, internationalization, and development tools. There's extensive new coverage of data management and regular expressions. And, yes, Hal Fulton introduces Rails, Nitro, and other Ruby-based web development tools. If you already know a little Ruby, he'll guide you to real mastery. Bill Camarda, from the January 2007 Read Only

Product Details

ISBN-13:
9780321714633
Publisher:
Addison-Wesley
Publication date:
03/16/2015
Series:
Addison-Wesley Professional Ruby Series
Pages:
816
Sales rank:
591,716
Product dimensions:
6.90(w) x 9.00(h) x 1.90(d)

Meet the Author

Hal Fulton has two degrees in computer science, in addition to 16 years of industry experience. He has been using Ruby since 1999 for a variety of programming tasks from large application and system programming to programming embedded applications.

Guy Hurst is the founder and proprietor of Hurstlinks, a Web development firm in Norfolk, VA. He has been using Ruby for many years, in place of Perl for a full range of Web programming tasks.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >