(Ebook PDF) Programming Ruby The Pragmatic Programmers’ Guide Second Edition by Dave Thomas, Chad Fowler, Andy Hunt-Ebook PDF Instant Download/Delivery:0974514055, 978-0974514031
Instant download Full Chapter of Programming Ruby The Pragmatic Programmers’ Guide Second Edition after payment
Product details:
ISBN 10:0974514055
ISBN 13:978-0974514031
Author: Dave Thomas, Chad Fowler, Andy Hunt
Ruby is an increasingly popular, fully object-oriented dynamic programming language, hailed by many practitioners as the finest and most useful language available today. When Ruby first burst onto the scene in the Western world, the Pragmatic Programmers were there with the definitive reference manual, Programming Ruby: The Pragmatic Programmer’s Guide.
Now in its second edition, author Dave Thomas has expanded the famous Pickaxe book with over 200 pages of new content, covering all the improved language features of Ruby 1.8 and standard library modules. The Pickaxe contains four major sections:
- An acclaimed tutorial on using Ruby.
- The definitive reference to the language.
- Complete documentation on all built-in classes, modules, and methods
- Complete descriptions of all 98 standard libraries.
If you enjoyed the First Edition, you’ll appreciate the expanded content, including enhanced coverage of installation, packaging, documenting Ruby source code, threading and synchronization, and enhancing Ruby’s capabilities using C-language extensions. Programming for the World Wide Web is easy in Ruby, with new chapters on XML/RPC, SOAP, distributed Ruby, templating systems, and other web services. There’s even a new chapter on unit testing.
This is the definitive reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including more than 250 significant changes since the First Edition). Coverage of other features has grown tremendously, including details on how to harness the sophisticated capabilities of irb, so you can dynamically examine and experiment with your running code. “Ruby is a wonderfully powerful and useful language, and whenever I’m working with it this book is at my side” –Martin Fowler, Chief Scientist, ThoughtWorks
Table of Contents:
Facets of Ruby
Getting Started
-
Installing Ruby
-
Installing Ruby for Windows
-
-
Running Ruby
-
Creating Ruby Programs
-
Getting More Information about Ruby
-
What’s Next
Ruby.new Excerpt
-
Ruby Is an Object-Oriented Language
-
Some Basic Ruby
-
Arrays and Hashes
-
Symbols
-
Control Structures
-
Regular Expressions
-
Blocks
-
Reading and Writing
-
Command-Line Arguments
-
Commenting Ruby
-
-
What’s Next
Classes, Objects, and Variables
-
Defining Classes
-
Objects and Attributes
-
Classes Working with Other Classes
-
Specifying Access Control
-
Variables
-
Reopening Classes
-
What’s Next
Collections, Blocks, and Iterators
-
Arrays
-
Hashes
-
Digging
-
Word Frequency: Using Hashes and Arrays
-
Blocks and Enumeration
-
What’s Next
More About Methods
-
Defining a Method
-
Calling a Method
-
What’s Next
Sharing Functionality: Inheritance, Modules, and Mixins (Excerpt)
-
Inheritance and Messages
-
Modules
-
Inheritance, Mixins, and Design
-
What’s Next
Basic Types: Numbers, Strings, and Ranges
-
Numbers
-
Strings
-
Ranges
-
What’s Next
Regular Expressions
-
What Regular Expressions Let You Do
-
Creating and Using Regular Expressions
-
Regular Expression Patterns
-
Regular Expression Syntax
-
What’s Next
Expressions
-
Operator Expressions
-
Command Expressions
-
Assignment
-
Conditional Execution
-
Loops and Iterators
-
Pattern Matching
-
What’s Next
Exceptions
-
The Exception Class
-
Handling Exceptions
-
Raising Exceptions
-
Using Catch and Throw
-
What’s Next
Basic Input and Output
-
What Is an I/O Object?
-
Opening and Closing Files
-
Reading and Writing Files
-
Talking to Networks
-
What’s Next
Threads, Fibers, and Ractors
-
Multithreading with Threads
-
Running Multiple External Processes
-
Creating Fibers
-
Understanding Ractors
-
What’s Next
Testing Ruby Code
-
Why Unit Test?
-
Testing with Minitest
-
Structuring Tests
-
Creating Mock Objects in Minitest
-
Organizing and Running Tests
-
-
Testing with RSpec
-
What’s Next
Ruby in Its Setting
-
Ruby from the Command Line (Excerpt)
-
Calling the Ruby Command
-
Ruby Command-Line Options
-
Making Your Code an Executable Program
-
Processing Command-Line Arguments to Your Code
-
Accessing Environment Variables
-
Where Ruby Finds Its Libraries
-
Using the Rake Build Tool
-
The Build Environment
-
-
What’s Next
Ruby Gems
-
Installing and Managing Gems
-
Using Bundler to Manage Groups of Gems
-
Writing and Packaging Your Own Code into Gems
-
Organizing Your Source Code
-
Distributing and Installing Your Code
-
-
What’s Next
Interactive Ruby
-
Using
irb
-
Navigating
irb
-
Configuring
irb
-
What’s Next
Debugging Ruby
-
Printing Things
-
The Ruby Debugger
-
Pry
-
Debugging Performance Issues with Benchmark
-
What’s Next
Typed Ruby (Excerpt)
-
What’s a Type?
-
Official Ruby Typing with RBS
-
Ruby Typing with Sorbet
-
What’s Next
Documenting Ruby
-
Documenting with RDoc
-
Adding RDoc to Ruby Code
-
Running RDoc
-
-
Documenting with YARD
-
What’s Next
Ruby Crystallized
-
Ruby and the Web
-
Ruby’s Web Utilities
-
Templating with ERB
-
Serving Ruby Code to the Web
-
Ruby in the Browser with WebAssembly
-
-
What’s Next
Ruby Style
-
Written Ruby Style
-
Using RuboCop
-
Using Standard
-
Ruby Style in the Large
-
Duck Typing
-
What’s Next
The Ruby Object Model and Metaprogramming
-
Understanding Objects and Classes
-
Defining Singleton Methods
-
Inheritance and Visibility
-
Modules and Mixins
-
Metaprogramming Class-Level Macros
-
Using
instance_eval
andclass_eval
-
Using Hook Methods
-
A Metaprogramming Example
-
Top-Level Execution Environment
-
What’s Next
Reflection and Object Space
-
Looking at Objects
-
Looking at Classes
-
Calling Methods Dynamically
-
System Hooks
-
Tracing Your Program’s Execution
-
Behind the Curtain: The Ruby VM
-
Marshaling and Distributed Ruby
-
What’s Next
Ruby Language Reference
Language Reference: Literal Types and Expressions
-
Source Layout
-
Ruby Literals
-
Regular Expressions
-
Names
-
Values, Variables, and Constants
-
Expressions, Conditionals, and Loops
-
Language Reference: Objects and Classes
-
Method Definition
-
Invoking a Method
-
Aliasing
-
Defining Classes
-
Defining Modules
-
Access Control
-
Blocks, Closures, and Proc Objects
-
Exceptions
-
Catch and Throw
-
Typed Ruby
Ruby Library Reference
Library Reference: Core Data Types
-
Dates and Times
-
Math
-
Numbers
-
Random and SecureRandom
-
Regexp
-
Strings
-
Symbols
Library Reference: Ruby’s Object Model
-
BasicObject
-
Class
-
Comparable
-
Kernel
-
Method
-
Module
-
Object
Library Reference: Enumerators and Containers
-
Array
-
Enumerable
-
Enumerator
-
Hash
-
Set
Library Reference: Input, Output, Files, and Formats
-
CSV
-
Dir
-
File
-
FileUtils
-
IO
-
JSON
-
Pathname
-
StringIO
-
Tempfile
-
URI
-
YAML
Library Reference: Ruby on Ruby
-
Benchmark
-
Data
-
Delegator and SimpleDelegator
-
Logger
-
ObjectSpace
-
Observable
-
OpenStruct
-
PP
-
Prism
-
Ripper
-
Singleton
-
Struct
-
Unbound Method
Appendixes
Troubleshooting Ruby
-
Common Issues
-
Debugging Tips
-
I Can’t Look It Up!
Command-Line Basics
-
The Command Prompt
-
Folders, Directories, and Navigation
Ruby Runtimes
-
Just-in-Time Compilers
-
TruffleRuby
-
JRuby
-
mRuby
-
Other Runtimes
-
Ruby Changes
People also search:
ruby metaprogramming
computer programming ruby
object oriented programming ruby
functional programming ruby
dynamic programming ruby
Tags:
Programming Ruby,Dave Thomas,Chad Fowler,Andy Hunt,Pragmatic Programmers