The Book of Ruby: A Hands-On Guide for the Adventurous

  • 5h 33m
  • Huw Collingbourne
  • No Starch Press
  • 2011

Ruby is famous for being easy to learn, but most users only scratch the surface of what it can do. While other books focus on Ruby's trendier features, The Book of Ruby reveals the secret inner workings of one of the world's most popular programming languages, teaching you to write clear, maintainable code.

you'll start with the basics—types, data structures, and control flows—and progress to advanced features like blocks, mixins, metaclasses, and beyond. Rather than bog you down with a lot of theory, The Book of Ruby takes a hands-on approach and focuses on making you productive from day one. As you follow along, you'll learn to:

  • Leverage Ruby's succinct and flexible syntax to maximize your productivity
  • Balance Ruby's functional, imperative, and object-oriented features
  • Write self-modifying programs using dynamic programming techniques
  • Create new fibers and threads to manage independent processes concurrently
  • Catch and recover from execution errors with robust exception handling
  • Develop powerful web applications with the Ruby on Rails framework

Each chapter includes a "Digging Deeper" section that shows you how Ruby works under the hood, so you'll never be caught off guard by its deceptively simple scoping, multithreading features, or precedence rules.

Whether you're new to programming or just new to Ruby, The Book of Ruby is your guide to rapid, real-world software development with this unique and elegant language.

About the Author

Huw Collingbourne is the Director of Technology for SapphireSteel Software, developer of the Ruby In Steel IDE. With 30 years of programming experience, he has written programming columns for numerous magazines, presented features on computing for BBC Television, and currently edits the online technical journal Bitwise Magazine. He has previously released two free ebooks on Ruby—The Little Book of Ruby and The Book of Ruby.

In this Book

  • The Book of Ruby—A Hands-On Guide for the Adventurous
  • Strings, Numbers, Classes, and Objects
  • Class Hierarchies, Attributes, and Class Variables
  • Strings and Ranges
  • Arrays and Hashes
  • Loops and Iterators
  • Conditional Statements
  • Methods
  • Passing Arguments and Returning Values
  • Exception Handling
  • Blocks, Procs, and Lambdas
  • Symbols
  • Modules and Mixins
  • Files and IO
  • YAML
  • Marshal
  • Regular Expressions
  • Threads
  • Debugging and Testing
  • Ruby on Rails
  • Dynamic Programming
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)