Section 1. The Philosophy of Ruby

If you have written any application in Rails, you have (of course) coded in Ruby. You probably have a good sense of Ruby’s syntax by now and a working knowledge of some of the core library. However, you might have missed some things along the way. You have seen the whats and the hows of Ruby but probably not the whys. Specifically, you might not have been exposed to the philosophy behind why Ruby does things the way it does. So, let’s start by exploring where Ruby came from and what it tries to accomplish.

For me, the purpose of life is, at least partly, to have joy. Programmers often feel joy when they can concentrate on the creative side of programming, so Ruby is designed to make programmers happy.

Yukihiro ...

Get Rubyisms in Rails 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.