Beginning Ruby

From Novice to Professional

2nd Edition

By Peter Cooper

Beginning Ruby Cover Image

Based on the bestselling first edition, Beginning Ruby: From Novice to Professional, Second Edition is the leading guide for every type of reader who wants to learn Ruby from the ground up.

Full Description

  • ISBN13: 978-1-4302-2363-4
  • User Level: Beginner
  • Publication Date: July 20, 2009
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Based on the bestselling first edition, Beginning Ruby: From Novice to Professional, Second Edition is the leading guide for every type of reader who wants to learn Ruby from the ground up.

The new edition of this book provides the same excellent introduction to Ruby as the first edition plus updates for the newest version of Ruby, including the addition of the Sinatra and Ramaze web application frameworks and a chapter on GUI development so developers can take advantage of these new trends.

Beginning Ruby starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a full Ruby application. By the end of the book, in addition to in-depth knowledge of Ruby, you'll also have basic understanding of many ancillary technologies such as SQL, XML, web frameworks, and networking.

  • Introduces readers to the Ruby programming language
  • Takes readers from basic programming skills to web development with topics like Ruby-based frameworks and GUI programming
  • Covers many ancillary technologies in order to provide a broader picture (e.g., databases, XML, network daemons)

What you’ll learn

  • Understand the basics of Ruby and object-oriented building blocks.
  • Work with Ruby libraries, gems, and documentation.
  • Work with files and databases.
  • Write and deploy Ruby applications.
  • Explore Ruby web frameworks and aspects of network programming with Ruby.
  • Develop desktop and GUI applications with Ruby.

Who this book is for

Beginning programmers, programmers new to Ruby, and web developers interested in knowing the foundations of the language.

Table of Contents

Table of Contents

  1. Let’s Get It Started: Installing Ruby
  2. Programming == Joy: A Whistle-Stop Tour of Ruby and Object Orientation
  3. Ruby’s Building Blocks: Data, Expressions, and Flow Control
  4. Developing Your First Ruby Application
  5. The Ruby Ecosystem
  6. Classes, Objects, and Modules
  7. Projects and Libraries
  8. Documentation, Error Handling, Debugging, and Testing
  9. Files and Databases
  10. Deploying Ruby Applications and Libraries
  11. Advanced Ruby Features
  12. Tying It Together: Developing a Larger Ruby Application
  13. Web Application Frameworks: Rails, Sinatra, and Ramaze
  14. Ruby and the Internet
  15. Networking, Sockets, and Daemons
  16. GUI-Based Desktop Application Development
  17. Useful Ruby Libraries and Gems
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 15:
The following code returns an error:
Code:-
User.find_by_email('me@privacy.net').country = 'Belgium'
Error:-
uninitialized constant Object::User


On page 445:
Hi,

I want to say great book. I've really got a good handle on Ruby now.

But I spotted an error on p445:

if Net::PingTCP.new('www.google.com', 80).ping

should be

if Net::Ping::TCP.new('www.google.com', 80).ping

Cheers,

Mark Cowan