Avdi Grimm - Confident Ruby [2013, PDF/EPUB/MOBI, ENG]

Страницы:  1
Ответить
 

habr

Стаж: 14 лет 10 месяцев

Сообщений: 123

habr · 18-Май-14 20:13 (11 лет 2 месяца назад)

Confident Ruby
Год: 2013
Автор: Avdi Grimm
Издательство: The Pragmatic Programmers
ISBN: в процессе получения
Язык: Английский
Формат: PDF/ePub/mobi
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 296
Описание: 32 Patterns for Joyful Coding
For many programmers, discovering Ruby is a revelation. They are overjoyed by how elegantly and succinctly they can state problems in the language. But then the real world creeps in, and that joy gradually wanes as the code becomes cluttered with distracting edge case scenarios, error handling, and checks for nil.
Confident Ruby is a guide to recapturing the joy of writing Ruby by employing small patterns and stylistic choices to make each method tell a coherent story. Over the course of 32 patterns, you’ll learn how to isolate uncertainty at the borders of your code; how to avoid repetitive conditionals; and how to liberate your code from the chore of nil-checking. You’ll discover the four parts of a method, and how to use those parts to construct a narrative. Following along with real-world refactoring sessions, you’ll learn how to apply these lessons to legacy code.
Whether you are a novice or an experienced Ruby hacker, this book will help you become a more confident and joyful programmer.
Примеры страниц
Оглавление
Foreword
Preface
Introduction
Performing Work
Sending a strong message
Collecting Input
Introduction to collecting input
Use built-in conversion protocols
Conditionally call conversion methods
Define your own conversion protocols
Define conversions to user-defined types
Use built-in conversion functions
Use the Array() conversion function to array-ify inputs
Define conversion functions
Replace “string typing” with classes
Wrap collaborators in Adapters
Use transparent adapters to gradually introduce abstraction
Reject unworkable values with preconditions
Use #fetch to assert the presence of Hash keys
Use #fetch for defaults
Document assumptions with assertions
Handle special cases with a Guard Clause
Represent special cases as objects
Represent do-nothing cases as null objects
Substitute a benign value for nil
Use symbols as placeholder objects
Bundle arguments into parameter objects
Yield a parameter builder object
Receive policies instead of data
Delivering Results
Write total functions
Call back instead of returning
Represent failure with a benign value
Represent failure with a special case object
Return a status object
Yield a status object
Signal early termination with throw
Handling Failure
Prefer top-level rescue clause
Use checked methods for risky operations
Use bouncer methods
Refactoring for Confidence
MetricFu
Stringer
Parting Words
Colophon
Download
Rutracker.org не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм
Как скачивать? (для скачивания .torrent файлов необходима регистрация)
[Профиль]  [ЛС] 

spacelord

Стаж: 16 лет 8 месяцев

Сообщений: 86


spacelord · 15-Сен-14 13:25 (спустя 3 месяца 27 дней)

Если можно, то и видео тоже выложите, пожалуйста.
[Профиль]  [ЛС] 

FranzKefka

Стаж: 13 лет 8 месяцев

Сообщений: 48


FranzKefka · 28-Окт-14 01:42 (спустя 1 месяц 12 дней)

Присоединяюсь к украинскому коллеге
[Профиль]  [ЛС] 

habr

Стаж: 14 лет 10 месяцев

Сообщений: 123

habr · 29-Окт-14 19:54 (спустя 1 день 18 часов)

Сорри, видео нету, за что купил, за то и продаю
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error