The Ruby Style Guide

  • Author: Bozhidar Batsov
  • Format: online HTML, archived HTML
  • Price: free

This Ruby style guide recommends best practices so that real-world Ruby programmers can write code that can be maintained by other real-world Ruby programmers. A style guide that reflects real-world usage gets used, and a style guide that holds to an ideal that has been rejected by the people it is supposed to help risks not getting used at all – no matter how good it is.

Continue reading

Ruby Hacking Guide

  • Author: Minero Aoki, Translated by Vincent Isambart and Clifford Escobar Caoile
  • Format: online HTML
  • Price: free

This book explores several themes with the following goals in mind: To have knowledge of the structure of ruby, To gain knowledge about language processing systems in general, To acquire skills in reading source code.

Ruby is an object-oriented language developed by Yukihiro Matsumoto. The official implementation of the Ruby language is called ruby. It is actively developed and maintained by the open source community. Our first goal is to understand the inner-workings of the ruby implementation. This book is going to investigate ruby as a whole.

Secondly, by knowing about the implementation of Ruby, we will be able to know about other language processing systems. This book tries to cover all topics necessary for implementing a language, such as hash table, scanner and parser, evaluation procedure, and many others. Because this book is not intended as a text book, going through entire areas and ideas without any lack was not reasonable. However the parts relating to the essential structures of a language implementation are adequately explained. And a brief summary of Ruby language itself is also included so that readers who don’t know about Ruby can read this book.

Continue reading

Data Structures and Algorithms with Object-Oriented Design Patterns in Ruby

  • Author: Bruno R. Preiss
  • Format: online HTML
  • Price: free

Create sound software designs with data structures that use modern object-oriented design patterns!

Author Bruno Preiss presents the fundamentals of data structures and algorithms from a modern, object-oriented perspective.

The text promotes object-oriented design using Ruby and illustrates the use of the latest object-oriented design patterns. Virtually all the data structures are discussed in the context of a single class hierarchy.

This framework clearly shows the relationships between data structures and illustrates how polymorphism and inheritance can be used effectively.

Continue reading

Objects on Rails

  • Author: Avdi Grimm
  • Format: online HTML
  • Price: free

This is not a Rails tutorial. This is the complete text of Objects on Rails, a “developer’s notebook” documenting some guidelines, techniques, and ideas for applying classic object-oriented thought to Ruby on Rails applications. This book is aimed at the working Rails developer who is looking to grow and evolve Rails projects while keeping them flexible, maintainable, and robust. Using the development of a blog app as its example, the focus is on pragmatic solutions which tread a “middle way” between the expedience of the Rails “golden path”, and rigid OO purity.

Continue reading

Clever Algorithms: Nature-Inspired Programming Recipes

  • Author: Jason Brownlee PhD
  • Format: online HTML
  • Price: free

The book describes 45 algorithms from the field of Artificial Intelligence. All algorithm descriptions are complete and consistent to ensure that they are accessible, usable and understandable by a wide audience.

This book provides a handbook of algorithmic recipes from the fields of Metaheuristics, Biologically Inspired Computation and Computational Intelligence that have been described in a complete, consistent, and centralized manner. These standardized descriptions were carefully designed to be accessible, usable, and understandable. Most of the algorithms described in this book were originally inspired by biological and natural systems, such as the adaptive capabilities of genetic evolution and the acquired immune system, and the foraging behaviors of birds, bees, ants and bacteria. An encyclopedic algorithm reference, this book is intended for research scientists, engineers, students, and interested amateurs. Each algorithm description provides a working code example in the Ruby Programming Language.

Continue reading

Learning Ruby

 

  • Author: Daniel Carrera
  • Format: online HTML, archived HTML
  • Price: free

This beginner book on Ruby covers the fundamentals of writing a program and the fundamental concepts needed to perform any task.

Continue reading

Ruby Cookbook and Language Reference

  • Author: Ryan Davis
  • Format: online HTML
  • Price: free

A language guide and reference, by Ryan Davis, The Language Freak. This was a work in progress and not fully completed. The author has since abandoned the project, but there may still be merit in listing this as an available free book, since some of his completed chapters may be of help to someone.

Continue reading

PLEAC-Ruby

  • Author: PLEAC Project
  • Format: online HTML
  • Price: free

Following the Perl Cookbook spirit, the PLEAC Project aims to gather fans of programming, in order to implement the solutions in other programming languages.

In this book, you’ll find an implementation of the Solutions of the Perl Cookbook in the Ruby language.

Continue reading

Beginning Ruby: From Novice to Professional, Second Edition

  • Author: Peter Cooper
  • Format: PDF (NOTE: Please read author’s full page before downloading)
  • Price: free

Beginning Ruby is a Ruby programming book aimed at newcomers to the language. It’s written in an instructional format and walks through basic programming concepts through to building Web apps, database apps, networking daemons, and GUI based apps. It’s well suited for someone new to programming as well as experienced developers who are just new to dynamic languages.

Continue reading