Книга: Metaprogramming Ruby 2
Назад: Part 1: Metaprogramming Ruby
Дальше: Ghost Towns and Marketplaces

Chapter 1

The M Word

Metaprogramming is writing code that writes code.

We’ll get to a more precise definition soon, but this one will do for now. What do I mean by “code that writes code,” and how is that useful in your daily work? Before I answer those questions, let’s take a step back and look at programming languages themselves.

Назад: Part 1: Metaprogramming Ruby
Дальше: Ghost Towns and Marketplaces