slimsnark: переводы
The Well-Grounded Rubyist / Хорошо подготовленный рубист
→The title of this part is “Ruby foundations,” which obviously suggests that what’s
here is to be built on later. And that’s true. But it doesn’t mean that the material in
part 1 isn’t important in itself. As you’ll see once you start them, these six chapters
present you with real Ruby techniques, real code, and information you’ll use every
time you write or execute a Ruby program. It’s the “foundations” not because you’ll
learn it once and then ignore it, but because there’s so much more about Ruby yet
to follow!
here is to be built on later. And that’s true. But it doesn’t mean that the material in
part 1 isn’t important in itself. As you’ll see once you start them, these six chapters
present you with real Ruby techniques, real code, and information you’ll use every
time you write or execute a Ruby program. It’s the “foundations” not because you’ll
learn it once and then ignore it, but because there’s so much more about Ruby yet
to follow!
0 Название этой части - "Основы руби", очевидно предполагает под собой что-либо, что будет получит развитие здесь в дальнейшем. И это так. Но это не значит, что материал в первой части книги не важен сам по себе. Вы увидите, что как только вы приметесь за эти шесть глав, они познакомят вас с реальными техниками руби, реальным кодом, а также с информацией, которую вы будете использовать каждый раз, когда пишете или выполняете руби программы. Это "Основы руби" не потому что вы изучите их лишь однажды, и в дальнейшем они вам не понадобятся, а потому что в руби есть так много всего о чем ещё только предстоит узнать.
→In chapter 6, the last in this part of the book, you’ll learn about control flow
in Ruby programs—that is, how to steer the Ruby interpreter through condi-
tional (if) logic, how to loop repeatedly through code, and even how to break
away from normal program execution when an error occurs. By the end of chap-
ter 6, you’ll be thinking along with Ruby as you write and develop your code.
in Ruby programs—that is, how to steer the Ruby interpreter through condi-
tional (if) logic, how to loop repeatedly through code, and even how to break
away from normal program execution when an error occurs. By the end of chap-
ter 6, you’ll be thinking along with Ruby as you write and develop your code.
0 В главе 6, последней в этой части книги, вы узнаете об управлении потоком передачи данных в руби программах, то есть о том как ведёт себя интерпретатор руби при условной (if) логике, как при цикличном исполнении кода и даже при нарушении нормального выполнения программы, когда возникает ошибка. К концу этой части книги вы будете думать вместе с руби, во время того как пишете и совершенствуете свой код.
→Objects are created by classes, and in chapter 3 you’ll learn how classes work.
The discussion of classes is followed by a look at modules in chapter 4. Modules
allow you to fine-tune classes and objects by splitting out some of the object
design into separate, reusable units of code. In order to understand Ruby pro-
grams—both your own and others’—you need to know about Ruby’s notion of a
default object, known by the keyword self; and chapter 5 will take you deep into
the concept of self, along with a treatment of Ruby’s handling of variable visibil-
ity and scope.
The discussion of classes is followed by a look at modules in chapter 4. Modules
allow you to fine-tune classes and objects by splitting out some of the object
design into separate, reusable units of code. In order to understand Ruby pro-
grams—both your own and others’—you need to know about Ruby’s notion of a
default object, known by the keyword self; and chapter 5 will take you deep into
the concept of self, along with a treatment of Ruby’s handling of variable visibil-
ity and scope.
0 Объекты создаются при помощи классов и в главе 3 вы узнаете как работают классы. За обсуждением классов последует рассмотрение модулей в Главе 4. Модули
позволяют точно настроить классы и объекты, разделяя некоторые из сущности проекта на отдельные, многократно используемые единицы кода.
позволяют точно настроить классы и объекты, разделяя некоторые из сущности проекта на отдельные, многократно используемые единицы кода.
→The goal of this part of the book is to give you a broad but practical founda-
tion layer on which to build, and to which to anchor, the further explorations of
Ruby that follow in parts 2 and 3. We’ll start with a chapter on bootstrapping
your Ruby literacy; after working though that first chapter, you’ll be able to run
Ruby programs comfortably and have a good sense of the layout of a typical
Ruby installation. Starting with chapter 2, we’ll get into the details of the Ruby
language. Ruby is an object-oriented language, and the sooner you dive into how
Ruby handles objects, the better. Accordingly, objects will serve both as a way to
bootstrap the discussion of the language (and your knowledge of it) and as a
golden thread leading us to further topics and techniques.
tion layer on which to build, and to which to anchor, the further explorations of
Ruby that follow in parts 2 and 3. We’ll start with a chapter on bootstrapping
your Ruby literacy; after working though that first chapter, you’ll be able to run
Ruby programs comfortably and have a good sense of the layout of a typical
Ruby installation. Starting with chapter 2, we’ll get into the details of the Ruby
language. Ruby is an object-oriented language, and the sooner you dive into how
Ruby handles objects, the better. Accordingly, objects will serve both as a way to
bootstrap the discussion of the language (and your knowledge of it) and as a
golden thread leading us to further topics and techniques.
0 Цель этой части книги - дать вам широкий, но полезный фундамент, на котором будут построены и закреплены дальнейшие исследования Ruby, которые последуют во 2-ой и 3-ей части. Мы начнём с главы о самостоятельном понимании уровня ваших знаний Ruby. При дальнейшей работе, несмотря на то что это всего лишь первая часть, вы сможете с лёгкостью запускать программы на Ruby и будете иметь хорошее понимание схемы базовой установки Ruby. Начиная с главы 2 мы будем вовлечены в детали языка Ruby. Ruby объектно-ориентированный язык и вскоре вы глубже окунётесь в то, как Ruby обращается с объектами. Соответственно, объекты послужат и в качестве введения в обсуждение языка (и ваших знаний о нём), и как
золотая нить они выведут нас к дальнейшим темам и техникам.
золотая нить они выведут нас к дальнейшим темам и техникам.
Резюме
- Пол:
- мужчина
- Родной язык:
- русский
- С нами:
-
с 15 ноября 2011 г.
(5451 день)
Не является членом клуба. - Деятельность:
-
4 версии перевода
с общим рейтингом 0
1 комментарий
