Hi, Habrozhiteli! We have translated another book from O'Reilly:

Are you wondering why literally everyone around you started talking about the Ruby language? Ask yourself bluntly: do you like working efficiently? Do numerous compilers, libraries, classes, with which other programming languages ​​load you, bring you closer to solving a specific task, to the admiration of colleagues and a crowd of happy customers? Do you want a programming language to do the technical details for you? Then throw out the routine work and start solving specific tasks, and the Ruby language will do the rest for you.
Like all the books in the Head First series, the book "Learning Ruby" takes an active approach to learning, going beyond dry, abstract explanations and reference books. You will not only be taught the Ruby language, but will also help your programmer star to shine brightly in the sky. You will learn the basics of the language and advanced features of Ruby, such as blocks, objects, methods, classes, and regular expressions. As your skills improve, tasks will become more complex and you will get to topics such as exception handling, modules, mixed classes, and metaprogramming.
')
Who is this book written for?
If you answer yes to all the following questions ...
1. Do you have a computer with a text editor?
2. Do you want to learn a programming language with which the development process becomes simple and productive?
3. Do you prefer lively conversation to dry, boring academic lectures?
... then this book is for you.
Who this book is not suitable?
If you answer yes to any of the following questions:
1. You absolutely do not understand computers? (It is not necessary to be an expert, but you must understand what files and folders are, be able to start a terminal application and use a simple text editor.)
2. Are you a super-duper developer who needs a reference?
3. Are you afraid to try something new? Rather, go to the dentist, than wear a striped with a checkered? You think that a technical book, in which inheritance is explained on the example of armadillos, cannot be serious?
... this book is not for you.
This is what we did:
We used
pictures , because the brain is better adapted to the perception of graphics than text. From a brain point of view, drawing is worth a thousand words. And when the text is combined with graphics, we embed the text directly into the drawings, because the brain works more efficiently.
We use
redundancy : we repeat the same thing several times, using different means of transmitting information, we turn to different feelings - and all to increase the likelihood that the material will be encoded in several areas of your brain.
We use concepts and drawings in a somewhat
unexpected way, because the brain perceives new information better. In addition, drawings and ideas usually have an
emotional content, because the brain pays attention to the biochemistry of emotions. What makes us feel is best remembered - whether it is a
joke ,
surprise or
interest .
We use
conversational style , because the brain perceives information better when you are participating in a conversation, rather than passively listening to a lecture. This happens when reading.
The book includes numerous
exercises , because the brain remembers better when you do something. We tried to make them difficult, but interesting - that is what most readers prefer.
We have combined
several learning
styles , because some readers prefer step-by-step descriptions, others tend to present a “big picture” first, and a third lacks a code fragment. Regardless of your personal preferences, it is useful to see several options for the presentation of one material.
We tried to use
both hemispheres of your brain ; This increases the likelihood of learning. While one side of the brain is working, the other often has the opportunity to rest; This increases the effectiveness of training for a long time.
The book also includes
stories and exercises reflecting
other points of view . The brain learns deeper information when it has to evaluate and make judgments.
The book often contains
questions that are not always possible to give a simple answer, because the brain learns faster and remembers when it has to do something. It’s impossible to build muscle by watching others do it. However, we made sure that the efforts of readers were made in the right direction. You do not have to wrestle with unintelligible examples or to understand a complex, oversaturated technical jargon or too concise text.
In the stories, examples, in the pictures
people are used - because you are
human too. And your brain pays more attention to people than to inanimate
objects .
Note
This is a tutorial, not a reference book. We deliberately removed from the book everything that could interfere with the study of the material on which you are working. And when you first read a book, you should start from the very beginning, because the book assumes that the reader has certain knowledge and experience.
A little programming experience in another language won't hurt .
Many developers switch to Ruby after another programming language (often trying to stay away from this language). The material is presented at a level that is understandable even for a beginner, but we do not explain in detail what a variable is and how an if command works. It will be easier for you if you at least represent these topics in general terms.
We are not trying to describe in detail each class, library and method.Ruby has many built-in classes and methods. Of course, all of them are of interest, but we would not have been able to consider them even in a book of twice the volume. Our focus will be on the main classes and methods that are important to you - the novice developer. We will make sure that you understand their essence well and feel confident enough about when and how they should be used. In any case, after reading the book, you can take any reference book and quickly find information about all the classes and methods that are not covered in the book.
Exercises are MANDATORY.Exercises are part of the main material of the book. Some exercises contribute to the memorization of the material, others help to better understand it, others focus on its practical application. Do not skip exercises.
Repetition is intentional.The books in this series have one fundamental feature: we want you to really understand the material well. And so that you remember everything that they learned. Most reference books do not aim to memorize successfully, but this is not a reference book, but a textbook, so some concepts are presented in the book several times.
Examples were made as compact as possible.Our readers don’t like to look at 200 lines of code in the examples to find two really important lines. Most of the examples of the book are given in the minimum possible context, so that the part you are studying is simple and intuitive. Do not expect that all examples will be protected from errors, or at least complete - they are written for educational purposes and do not always have full functionality.
All sample files are available for download on the Internet. You will find them at
headfirstruby.com .
Author
Jay McGavren was involved in automating a company operating in the hotel industry when a colleague showed him the book Programming Perl (the so-called “book with a camel”). Jay instantly became a Perl fan because he liked to write code without waiting for a group of 10 people to set up an assembly system. At the same time, he had a crazy idea to ever write a technical book himself.
In 2007, when Perl's development reached a dead end, Jay began to look for a new interpretable language. Ruby won - thanks to its strong
object orientation, superior support and incredible flexibility. Since then, he used Ruby to work on two
libraries, a project in the field of art, and also engaged in independent development using Ruby on Rails. Since 2011, he has worked in the field of online developer training.
You can read Jay on Twitter at
https://twitter.com/jaymcgavren or visit his personal website
http://jay.mcgavren.com .
More information about the book can be found on
the publisher's website.Table of contentsExcerptFor Habrozhiteley 25% coupon discount -
Ruby