Collingbourne H. - The Book Of Ruby [2011, PDF, ENG]

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

psv1979kh

Top Seed 04* 320r

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

Сообщений: 527

psv1979kh · 13-Июл-11 18:27 (13 лет 11 месяцев назад, ред. 13-Июл-11 18:53)

The Book Of RUBY
Год: 2011
Автор: Huw Collingbourne
Жанр: Программирование
Издательство: No Starch Press
ISBN: 1-59327-294-4
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 402
Описание: Ruby is famous for being easy to learn, but most users only scratch the surface of what it can do. While other books focus on Ruby’s trendier features, The Book of Ruby reveals the secret inner workings of one of the world’s most popular programming languages, teaching you to write clear, maintainable code.
You’ll start with the basics—types, data structures, and control flows—and progress to advanced features like blocks, mixins, metaclasses, and beyond. Rather than bog you down with a lot of theory, The Book of Ruby takes a hands-on approach and focuses on making you productive from day one. As you follow along, you’ll learn to:
Leverage Ruby’s succinct and flexible syntax to maximize your productivity
Balance Ruby’s functional, imperative, and object-oriented features
Write self-modifying programs using dynamic programming techniques
Create new fibers and threads to manage independent processes concurrently
Catch and recover from execution errors with robust exception handling
Develop powerful web applications with the Ruby on Rails framework
Each chapter includes a “Digging Deeper” section that shows you how Ruby works under the hood, so you’ll never be caught off guard by its deceptively simple scoping, multithreading features, or precedence rules.
Whether you’re new to programming or just new Ruby, The Book of Ruby is your guide to rapid, real-world software development with this unique and elegant language.
Примеры страниц
Оглавление
Chapter 1 : Strings, Numbers, Classes, and Objects
Getting and Putting Input
Strings and Embedded Evaluation
Numbers
Comments
Testing a Condition: if..then
Local and Global Variables
Classes and Objects
Chapter 2 : Class Hierarchies, Attributes, and Class Variables
Superclasses and Subclasses
Passing Arguments to the Superclass
Accessor Methods
Attribute Readers and Writers
Calling Methods of a Superclass
Class Variables
Chapter 3 : Strings and Ranges
User-Defined String Delimiters
Backquotes
String Handling
Ranges
Chapter 4 : Arrays and Hashes
Arrays
Hashes
Chapter 5 : Loops and Iterators
for Loops
Blocks and Block Parameters
Iterating upto and downto
Multiple Iterator Arguments
while Loops
until Loops
loop
Chapter 6 : Conditional Statements
if..then..else
and, or, and not
Negation
if..elsif
unless
if and unless Modifiers
Case Statements
Chapter 7 : Methods
Class Methods
What Are Class Methods For?
Class Variables
Ruby Constructors: new or initialize?
Singleton Methods
Singleton Classes
Overriding Methods
Public, Protected, and Private Methods
Chapter 8 : Passing Arguments and Returning Values
Summarizing Instance, Class, and Singleton Methods
Returning Values
Returning Multiple Values
Default and Multiple Arguments
Assignment and Parameter Passing
Integers Are Special
The One-Way-In, One-Way-Out Principle
Modifying Receivers and Yielding New Objects
Potential Side Effects of Reliance on Argument Values
Parallel Assignment
Chapter 9 : Exception Handling
rescue: Execute Code When Error Occurs
ensure: Execute Code Whether or Not an Error Occurs
else: Execute Code When No Error Occurs
Error Numbers
retry: Attempt to Execute Code Again After an Error
raise: Reactivate a Handled Error
Chapter 10 : Blocks, Procs, and Lambdas
What Is a Block?
Line Breaks Are Significant
Nameless Functions
Look Familiar?
Blocks and Arrays
Procs and Lambdas
Block or Hash?
Creating Objects from Blocks
What Is a Closure?
yield
Blocks Within Blocks
Passing Named Proc Arguments
Precedence Rules
Blocks as Iterators
Chapter 11 : Symbols
Symbols and Strings
Symbols and Variables
Why Use Symbols?
Chapter 12 : Modules and Mixins
A Module Is Like a Class . . .
Module Methods
Modules as Namespaces
Included Modules, or “Mixins”
Name Conflicts
Alias Methods
Mix In with Care!
Including Modules from Files
Chapter 13 : Files and IO
Opening and Closing Files
Characters and Compatibility
Files and Directories
Copying Files
Directory Inquiries
A Discursion into Recursion
Sorting by Size
Chapter 14 : YAML
Converting to YAML
Nested Sequences
Saving YAML Data
Omitting Variables on Saving
Multiple Documents, One File
A YAML Database
Adventures in YAML
Chapter 15 : Marshal
Saving and Loading Data
Omitting Variables on Saving
Saving Singletons
Chapter 16 : Regular Expressions
Making Matches
Match Groups
MatchData
Prematch and Postmatch
Greedy Matching
String Methods
File Operations
Chapter 17 : Threads
Creating Threads
Running Threads
Going Native
The Main Thread
Thread Status
Ensuring That a Thread Executes
Thread Priorities
The Main Thread Priority
Mutexes
Fibers
Chapter 18 : Debugging and Testing
IRB: Interactive Ruby
Debugging
Unit Testing
Chapter 19 : Ruby on Rails
Installing Rails
Model-View-Controller
A First Ruby on Rails Application
Create a Rails Application
Create a Controller
Anatomy of a Simple Rails Application
The Generate Controller Script Summarized
Create a View
Rails Tags
Let’s Make a Blog!
Chapter 20 : Dynamic Programming
Self-Modifying Programs
eval
Special Types of eval
Adding Variables and Methods
Creating Classes at Runtime
Bindings
send
Removing Methods
Handling Missing Methods
Writing Programs at Runtime
Exploring Further
Appendix : Documenting Ruby with RDoc
Appendix : Installing MySQL for Ruby on Rails
Downloading MySQL
Installing MySQL
Configuring MySQL
Can’t Find the Database?
Appendix : Further Reading
Books
Ebooks
Websites
Appendix : Ruby and Rails Development Software
IDEs and Editors
Web Servers
Databases
Ruby Implementations
Colophon
Appendix : Updates
Доп. информация: The book is divided into bite-sized chunks. Each chapter introduces a theme that is subdivided into subtopics. Each programming topic is accompanied
by one or more small, self-contained, ready-to-run Ruby programs. If you want to follow a well-structured “course,” read each chapter in sequence.
If you prefer a more hands-on approach, you can run the programs first and refer to the text when you need an explanation. If you already have some experience with Ruby, feel ree to cherry-pick topics in any order you find useful. There are no monolithic applications in this book, so you don’t have to worry you might lose the plot if you read the chapters out of order!
говорим СПАСИБО!
Download
Rutracker.org не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм
Как скачивать? (для скачивания .torrent файлов необходима регистрация)
[Профиль]  [ЛС] 

UrbanHero

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

Сообщений: 292


UrbanHero · 16-Авг-11 11:41 (спустя 1 месяц 2 дня)

в ePUB она тоже есть - находил в осле
[Профиль]  [ЛС] 

catznn

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

Сообщений: 57


catznn · 26-Авг-11 18:34 (спустя 10 дней)

По оглавлению никаких особо новых тем и не описано. Основы и в других уже неплохо были описаны.
[Профиль]  [ЛС] 

Vovan_2012

Стаж: 15 лет 2 месяца

Сообщений: 28


Vovan_2012 · 04-Окт-11 10:02 (спустя 1 месяц 8 дней)

Хороший современный учебник, достаточно полноe систематическое изложение.
[Профиль]  [ЛС] 

iZhar

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

Сообщений: 101


iZhar · 03-Янв-13 09:42 (спустя 1 год 2 месяца)

Vovan_2012 писал(а):
48059561Хороший современный учебник, достаточно полноe систематическое изложение.
почуму-то отзывы не очень: 3.5/5 3.87/5 3/5
http://www.goodreads.com/book/show/11364257-the-book-of-ruby#other_reviews
http://shop.oreilly.com/product/9781593272944.do
http://www.amazon.com/The-Book-Ruby-Adventurous-ebook/dp/B005EI84QA/ref=tmm_kin_title_0
[Профиль]  [ЛС] 

conkymypower4

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

Сообщений: 45

conkymypower4 · 03-Янв-13 17:05 (спустя 7 часов)

книга — бе. с какой целью её выпустили в свет, лично для меня, загадка.
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error