Programming Books

20 Recommended Free Books to Learn about Ruby

Last Updated on October 25, 2024

Ruby is a general purpose, scripting, structured, flexible, fully object-oriented programming language with a focus on simplicity and productivity. Ruby is a very conservative language. It’s equipped with very carefully chosen features that have been fully tested.

Ruby possesses a high portability running a large number of platforms including Linux, Windows, Mac OS X, Cygwin, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, Tru64 UNIX, and HP-UX. The TIOBE Programming Community index currently ranks Ruby in 13th place.

Ruby’s popularity was enhanced by the Ruby on Rails framework, a full-stack web framework which has been used to create many popular applications including Basecamp, GitHub, Shopify, Airbnb, Twitch, SoundCloud, Hulu, Zendesk, Square, and Highrise.

I recommend 20 free books which will teach you the basics of Ruby.  Many of the books are open source. All of them can be read without requiring payment although some of them are available to purchase in paperback or electronic versions. Never underestimate the benefits of buying a printed copy of a programming book, as well as compensating the author for his work.


1. Learn Ruby the Hard Way by Zed A. Shaw

Learn-Ruby-Hard-Way

The full title of the book Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code is a bit of a mouthful.

Don’t be misled by the title of the book. The book is designed for beginners to programming that are looking to learn Ruby. It shows you at a gentle pace how to build basic skills in Ruby programming. It’s a very good introductory text.

Now in its 3rd edition, Learn Ruby the Hard Way Learn Ruby the Hard Way is available to read for free. The video lectures are not included. You can also purchase paper versions of the book.

Read the book


2. Book of Ruby – A Hands-on Guide for the Adventurous by Huw Collingbourne

The-Book-of-RubyThe Book of Ruby describes the secret inner workings of Ruby, helping you learn 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.

The Book of Ruby takes a hands-on approach. It contains 425 pages in 20 chapters. It is provided in the form of a PDF.

The author of the book is a co-developer of the Ruby In Steel IDE.

Read the book


3. Ruby Best Practices by Gregory T Brown

Ruby Best Practices

Ruby Best Practices aims to help Ruby developers from a wide range of skill levels improve their fundamental understanding of the language via exposure to the common practices and idioms that many seasoned Rubyists take for granted. With a strong emphasis on exploring real codebases, and an understanding that beautiful solutions depend heavily on context, this book lays out a clear road map to Ruby mastery for those who wish to pursue it.

Written by the developer of the Ruby project Prawn, this concise book explains how to design beautiful APIs and domain-specific languages with Ruby, as well as how to work with functional programming ideas and techniques that can simplify your code and make you more productive. You’ll learn how to write code that’s readable, expressive, and much more.

The book’s website has been down for years. But a PDF copy is available. Definitely one to download.

Read the book


4. Ruby Hacking Guide by Aoki-san

Ruby Hacking GuideRuby Hacking Guide is a book intended for advanced programmers. The book explains how the Ruby 1.7.x-1.8.x interpreter (the official C implementation of the Ruby language) works internally.

This book was originally written in Japanese, and has been translated into English. Some chapters are previews.

Read the book


5. I Love Ruby by A.K. Karthikeyan

I-Love-Ruby

I love Ruby: Get started with the greatest programming language made for humans is suitable for anyone interested in learning Ruby.

Its examples are designed for Ruby 2.5.

You can grab this book from https://i-love-ruby.gitlab.io/. And the complete book with source code is available from the author’s GitLab repository. There’s also paperback and Kindle version available to purchase.

Read the book


Next page: Page 2 – Programming Ruby – The Pragmatic Programmer’s Guide and more books

Pages in this article:
Page 1 – My Strongest Recommendations
Page 2 – Programming Ruby – The Pragmatic Programmer’s Guide and more books
Page 3 – Learn to Program and more books
Page 4 – Developing Games With Ruby and more books


All books in this series:

Free Programming Books
AdaALGOL-like programming language, extended from Pascal and other languages
AgdaDependently typed functional language based on intuitionistic Type Theory
ArduinoInexpensive, flexible, open source microcontroller platform
AssemblyAs close to writing machine code without writing in pure hexadecimal
AwkVersatile language designed for pattern scanning and processing language
BashShell and command language; popular both as a shell and a scripting language
BASICBeginner’s All-purpose Symbolic Instruction Code
CGeneral-purpose, procedural, portable, high-level language
C++General-purpose, portable, free-form, multi-paradigm language
C#Combines the power and flexibility of C++ with the simplicity of Visual Basic
ClojureDialect of the Lisp programming language
ClojureScriptCompiler for Clojure that targets JavaScript
COBOLCommon Business-Oriented Language
CoffeeScriptTranscompiles into JavaScript inspired by Ruby, Python and Haskell
CoqDependently typed language similar to Agda, Idris, F* and others
CrystalGeneral-purpose, concurrent, multi-paradigm, object-oriented language
CSSCSS (Cascading Style Sheets) specifies a web page’s appearance
DGeneral-purpose systems programming language with a C-like syntax
DartClient-optimized language for fast apps on multiple platforms
DylanMulti-paradigm language supporting functional and object-oriented coding
ECMAScriptBest known as the language embedded in web browsers
EiffelObject-oriented language designed by Bertrand Meyer
ElixirRelatively new functional language running on the Erlang virtual machine
ErlangGeneral-purpose, concurrent, declarative, functional language
F#Uses functional, imperative, and object-oriented programming methods
FactorDynamic stack-based programming language
ForthImperative stack-based programming language
FortranThe first high-level language, using the first compiler
GoCompiled, statically typed programming language
GroovyPowerful, optionally typed and dynamic language
HaskellStandardized, general-purpose, polymorphically, statically typed language
HTMLHyperText Markup Language
IconWide variety of features for processing and presenting symbolic data
JArray programming language based primarily on APL
JavaGeneral-purpose, concurrent, class-based, object-oriented, high-level language
JavaScriptInterpreted, prototype-based, scripting language
JuliaHigh-level, high-performance language for technical computing
KotlinMore modern version of Java
LabVIEWDesigned to enable domain experts to build power systems quickly
LaTeXProfessional document preparation system and document markup language
LispUnique features - excellent to study programming constructs
LogoDialect of Lisp that features interactivity, modularity, extensibility
LuaDesigned as an embeddable scripting language
MarkdownPlain text formatting syntax designed to be easy-to-read and easy-to-write
Objective-CObject-oriented language that adds Smalltalk-style messaging to C
OCamlThe main implementation of the Caml language
PascalImperative and procedural language designed in the late 1960s
PerlHigh-level, general-purpose, interpreted, scripting, dynamic language
PHPPHP has been at the helm of the web for many years
PostScriptInterpreted, stack-based and Turing complete language
PrologA general purpose, declarative, logic programming language
PureScriptSmall strongly, statically typed language compiling to JavaScript
PythonGeneral-purpose, structured, powerful language
QMLHierarchical declarative language for user interface layout - JSON-like syntax
RDe facto standard among statisticians and data analysts
RacketGeneral-purpose, object-oriented, multi-paradigm, functional language
RakuMember of the Perl family of programming languages
RubyGeneral purpose, scripting, structured, flexible, fully object-oriented language
RustIdeal for systems, embedded, and other performance critical code
ScalaModern, object-functional, multi-paradigm, Java-based language
SchemeA general-purpose, functional language descended from Lisp and Algol
ScratchVisual programming language designed for 8-16 year-old children
SQLAccess and manipulate data held in a relational database management system
Standard MLGeneral-purpose functional language characterized as "Lisp with types"
SwiftPowerful and intuitive general-purpose programming language
TclDynamic language based on concepts of Lisp, C, and Unix shells
TeXMarkup and programming language - create professional quality typeset text
TypeScriptStrict syntactical superset of JavaScript adding optional static typing
ValaObject-oriented language, syntactically similar to C#
VHDLHardware description language used in electronic design automation
VimLPowerful scripting language of the Vim editor
XMLRules for defining semantic tags describing structure ad meaning
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Please read our Comment FAQ before posting a comment.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments