Rails вкратце

Cody Fauser, James MacAulay, Edward Ocampo-Gooding, John Guenin, “Rails in a Nutshell”, public translation into Russian from English More about this translation.

See also 14 similar translations

Translate into another language.

Participants

alexbaumgertner1441 points
rotuka.com1048 points
Valeanna798 points
And others...
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next next untranslated
1 2 3 4 5 6 7 8 9 10 11 12 13

Rails in a Nutshell

Rails вкратце

History of edits (Latest: alexbaumgertner 4 months, 2 weeks ago) §

Chapter 1. Rails

Глава 1. Rails

History of edits (Latest: alexbaumgertner 4 months, 2 weeks ago) §

What makes you happy?

Что делает вас счастливыми?

History of edits (Latest: alexbaumgertner 4 months, 2 weeks ago) §

Programmer happiness comes from being able to quickly and correctly express the ideas you’ve got in your head so it’s easy for another person to understand and build on.

Программиста счастливым делает возможность быстро и ясно изложить свою идею, так, что ее смогут легко понять и развить другие.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §

Surprises in code behaviour, having to repeat yourself, chores like filling out configuration files, designing a directory structure convention to keep everything in and finding libraries to do what you need are all common obstacles.

Непредсказуемая работа кода, повторы, рутина конфигурации, поиски библиотек, постоянный контроль за целостностью структуры мешают нашему счастью.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §

Rails sidesteps these problems by being predictable, following the DRY* principle whereever possible by coming with well-chosen defaults to minimize configuration chores, an easily-navigated file-structure, and bundled libraries for what you’re probably going to be doing with a web application – altogether, the general idea is convention over configuration.

Rails использует принцип DRY (don’t repeat youself — не повторяй себя) — единая предсказуемая и продуманная конфигурация, файловая структура и встроенные библиотеки используются во всех проектах по умолчанию, сводя к минимуму дополнительную работу по настройке. Главная идея Rails — преимущество соглашения о структуре веб-приложения над ручной настройкой.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §

By building an application with Rails, you get to concentrate on your own problem instead of those that have been solved already.

Создавая приложения с Rails, вы сосредоточены на собственной задаче, а не на изобретении очередного велосипеда.

History of edits (Latest: alexbaumgertner 4 months, 2 weeks ago) §

Architecture

Архитектура

History of edits (Latest: alexbaumgertner 4 months, 2 weeks ago) §

After you’ve written a few web applications, you pick up on some patterns about how they’re best built and maintained.

После создания нескольких веб приложений, вы воспринимаете некоторые паттерны как лучшие с точки зрения построения и разработки.

History of edits (Latest: alexbaumgertner 4 months, 2 weeks ago) §

Typically, there are three archaetypical team members working on it: a business person, a designer, and a manager to glue everything together when results need to be delivered. These experts perform better when they have complete control over their own domains, so give them space—separate all their code, and only let them talk to each other through explicitly defined public methods.

Обычно над проектом работают три типичных участника команды: представитель бизнеса, дизайнер и менеджер, который объединяет их усилия для достижения желаемого результата. Такая команда работает гораздо эффективнее, если каждый из них имеет полный контроль только над своей работой, а друг с другом они общаются посредством общепринятых методов.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §

This idea of keeping concerns separate when it comes to business logic, presentation, and bringing it all together is formally known as the Model View Controller (MVC) pattern. Rails is built on this idea of separating concerns.

Эта идея — разделять бизнес логику, интерфейс, и соединение этого всего вместе — формально известна как шаблон MVC (Model View Controller). Фреймворк Rails построен на этой идее разделения ролей.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §

Model

Модель

History of edits (Latest: asplogika 4 months, 2 weeks ago) §

A model contains business logic – whether or not to ship something somewhere, send a happy birthday notification, or launch a space ship. They act as models, or representations of things in real life. These decisions are often made based on past events, so a database is usually involved.

Модель содержит бизнес логику — можно ли что-то отправлять куда-то: поздравить кого-то с днём рождения или запустить космический корабль. Все это действует как модель вещей в реальной жизни. Эти решения часто основываются на прошедших событиях, так что практически всегда используется база данных.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §

Rails handles the conversation with the database with ActiveRecord, leaving you to just fill in the parts relative to your business. Tests are done through the bundled UnitTest package.

Rails берет на себя работу с базой данных при помощи ActiveRecord, а вам остается заполнить лишь те части, которые относятся к вашему делу. Также генерируются тесты посредством пакета UnitTest.

History of edits (Latest: rotuka.com 4 months, 2 weeks ago) §
Pages: ← previous Ctrl next next untranslated
1 2 3 4 5 6 7 8 9 10 11 12 13

© Copyright © 2009 Cody Fauser, James MacAulay, Edward Ocampo-Gooding, and John Guenin. License: Open Feedback Publishing System (OFPS)