Rails вкратце

Cody Fauser, James MacAulay, Edward Ocampo-Gooding, John Guenin, “Rails in a Nutshell”, viešas vertimas into Russian iš Anglų Daugiau apie šį vertimą.

Taip pat žiūrėkite 20 panašius vertimus

Išversti į kitą kalbą.

Dalyviai

alexbaumgertner1441 taškai
rotuka.com1048 taškai
Valeanna798 taškai
Ir kiti...
Norėdami versti, užsiregistruokite. Jeigu jau užsiregistravote , prisijunkite. Galima prisijungti su OpenId.
Puslapiai: ← ankstesnis Ctrl kitas toliau - kas neišversta
1 2 3 4 5 6 7 8 9 10 11 12 13

Rails in a Nutshell

Rails вкратце

Pakeitimų istorija (Naujausias turinys: alexbaumgertner prieš 10 mėnesiai, 1 savaitė) §

Chapter 1. Rails

Глава 1. Rails

Pakeitimų istorija (Naujausias turinys: alexbaumgertner prieš 10 mėnesiai, 1 savaitė) §

What makes you happy?

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

Pakeitimų istorija (Naujausias turinys: alexbaumgertner prieš 10 mėnesiai, 1 savaitė) §

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.

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

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §

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.

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

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §

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 — преимущество соглашения о структуре веб-приложения над ручной настройкой.

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §

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

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

Pakeitimų istorija (Naujausias turinys: alexbaumgertner prieš 10 mėnesiai, 1 savaitė) §

Architecture

Архитектура

Pakeitimų istorija (Naujausias turinys: alexbaumgertner prieš 10 mėnesiai, 1 savaitė) §

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

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

Pakeitimų istorija (Naujausias turinys: alexbaumgertner prieš 10 mėnesiai, 1 savaitė) §

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.

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

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §

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 построен на этой идее разделения ролей.

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §

Model

Модель

Pakeitimų istorija (Naujausias turinys: asplogika prieš 10 mėnesiai, 1 savaitė) §

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.

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

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §

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.

Pakeitimų istorija (Naujausias turinys: rotuka.com prieš 10 mėnesiai, 1 savaitė) §
Puslapiai: ← ankstesnis Ctrl kitas toliau - kas neišversta
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. Licenzija: Open Feedback Publishing System (OFPS)