Chapter 1

Hello, World!

“Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.” Or so says the official Ruby website. In my experience, this description rings true—as does the declaration by Ruby’s creator that the language is “optimized for programmer happiness.” Ruby feels natural to read and write, has a wealth of built-in libraries, and has a powerful object-oriented design.

Learn Enough Ruby to Be Dangerous is designed to get you started writing practical and modern Ruby programs as fast as possible, with a focus on the real tools used every day by software developers.

As a general-purpose programming language, Ruby is limited ...

Get Learn Enough Ruby to Be Dangerous: Write Programs, Publish Gems, and Develop Sinatra Web Apps with Ruby now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.