• Complain

Dave Thomas - Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide

Here you can read online Dave Thomas - Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Pragmatic Bookshelf, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Dave Thomas Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide
  • Book:
    Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide
  • Author:
  • Publisher:
    Pragmatic Bookshelf
  • Genre:
  • Year:
    2013
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox.
This book is the only complete reference for both Ruby 1.9 and Ruby 2.0, the very latest version of Ruby.
2013 marks the 20th anniversary of the Ruby language. Were proud that throughout its history, weve continued to cover the latest version of Ruby.
Would you like to go from first idea to working code much, much faster? Do you currently spend more time satisfying the compiler instead of your clients or end users? Are you frustrated with demanding languages that seem to get in your way, instead of getting the work done? Are you using Rails, and want to dig deeper into the underlying Ruby language? If so, then weve got a language and book for you!
Ruby is a fully object-oriented language, much like the classic object-oriented language, Smalltalk. Like Smalltalk, it is dynamically typed (as opposed to Java or C++), but unlike Smalltalk, Ruby features the same conveniences found in modern scripting languages such as Perl and Python.
The combination of the power of a pure object-oriented language with the convenience of a scripting language makes Ruby a favorite tool of intelligent, forward-thinking programmers.
The Pickaxe contains four major sections:
An acclaimed tutorial on using Ruby. The definitive reference to the language. Complete documentation of all built-in classes, modules, and methods. Complete descriptions of all 97 standard libraries.
This is the reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including all the new and changed methods introduced by Ruby 1.9, 1.9.2, 1.9.3, and 2.0). It also includes all the new and changed syntax and semantics introduced since Ruby 1.8. Learn about the new parameter passing rules, local variable scoping in blocks, fibers, and the new block declaration syntax, among other exciting new features.
About Ruby 2.0
Ruby 2.0 is a minor update to Ruby 1.9, unlike the more major updates from Ruby 1.8 to Ruby 1.9.
The major language changes in Ruby 2.0 are the addition of keyword arguments and the change to use UTF-8 as the default source file encoding.
There are a number of additions to the standard library, including:
@Enumerator::Lazy@, which adds support for lazy access to potentially infinite lists. Refinements allow you to encapsulate changes to third-party classes, and scope their application to individual source files, preventing your changes from polluting the global application.
Youll also find that Ruby 2 is faster, and has memory management improvements that make it more server-friendly.
All told, there are over 110 sections of the book that have been flagged and cross-linked to indicate 2.0 content.
What You Need
This book assumes you have a basic understanding of object-oriented programming.
In general, Ruby programmers tend to favor the the command line for running their code, and they tend to use text editors rather than IDEs.
* Ruby runs on Windows, Linux, and Macs.

Dave Thomas: author's other books


Who wrote Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide? Find out the surname, the name of the author of the book and a list of all author's works by series.

Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Programming Ruby 19 20 The Pragmatic Programmers Guide by Dave Thomas with - photo 1
Programming Ruby 1.9 & 2.0
The Pragmatic Programmers Guide
by Dave Thomas, with Chad Fowler, Andy Hunt
Version: P1.0 (June, 2013)
Copyright 2013 The Pragmatic Programmers, LLC. This book is licensed tothe individual who purchased it. We don't copy-protect itbecause that would limit your ability to use it for yourown purposes. Please don't break this trustyou can use this across all of your devices but please do not share this copywith other members of your team, with friends, or via file sharing services. Thanks.
Dave & Andy.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC.

Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein.

Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com.

Table of Contents
Copyright 2013, The Pragmatic Bookshelf.

Foreword to the Third Edition

I wrote forewords to the previous two editions of this book. For the first edition, I wrote about motivation. For the second edition, I wrote about miracles.

For this third edition, Id like to write about courage. I always admire brave people. People around Ruby seem to be brave, like the authors of this book. They were brave to jump in to a relatively unknown language like Ruby. They were brave to try new technology. They could have happily stayed with an old technology, but they didnt. They built their own world using new bricks and mortar. They were adventurers, explorers, and pioneers. By their effort, we have a fruitful resultRuby.

Now, I feel that Ive created my own universe with help from those brave people. At first, I thought it was a miniature universe, like the one in Fessendens Worlds. But now it seems like a real universe. Countless brave people are now working with Ruby. They challenge new things every day, trying to make the world better and bigger. I am very glad I am part of the Ruby world.

I suppose that even the world itself could not contain the books that should be written. But now we have the first book, updated to the most recent. Enjoy.

Yukihiro Matsumoto, aka Matz
Japan, February 2009
Copyright 2013, The Pragmatic Bookshelf.

Preface

This book is a new version of the PickAxe, as Programming Ruby is known to Ruby programmers. It is a tutorial and reference for versions 1.9 and 2.0 of the Ruby programming language.

Ruby 1.9 was a significant departure from previous versions. There are major changes in string handling, the scoping of block variables, and the threading model. It has a new virtual machine. The built-in libraries have grown, adding many hundreds of new methods and almost a dozen new classes. The language now supports scores of character encodings, making Ruby one of the only programming languages to live fully in the whole world.

Ruby 2.0 is a (fairly minor) incremental improvement on Ruby 1.9.

Why Ruby?

When Andy and I wrote the first edition, we had to explain the background and appeal of Ruby. Among other things, we wrote, When we discovered Ruby, we realized that wed found what wed been looking for. More than any other language with which we have worked, Ruby stays out of your way . You can concentrate on solving the problem at hand, instead of struggling with compiler and language issues. Thats how it can help you become a better programmer: by giving you the chance to spend your time creating solutions for your users, not for the compiler.

That belief is even stronger today. More than thirteen years later, Ruby is still my language of choice: I use it for client applications and web applications. I use it to run our publishing business (our online store, http://pragprog.com , is more than 40,000 lines of Rails code), and I use it for all those little programming jobs I do just to get things running smoothly.

In all those years, Ruby has progressed nicely. A large number of methods have been added to the built-in classes and modules, and the size of the standard library (those libraries included in the Ruby distribution) has grown tremendously. The community now has a standard documentation system (RDoc), and RubyGems has become the system of choice for packaging Ruby code for distribution. We have a best-of-breed web application framework, Ruby on Rails, with others waiting in the wings. We are leading the world when it comes to testing, with tools such as RSpec and Cucumber, and were working through the hard problems of packaging and dependency management. Weve matured nicely.

But Ruby is older than that. The first release of this book happened on Rubys 20th birthday (it was created on February 24, 1993). The release of Ruby 2.0 is a celebration of that anniversary.

Ruby Versions

This version of the PickAxe documents both Ruby 2.0 and Ruby 1.9.3.

Exactly what version of Ruby did I use to write this book? Lets ask Ruby:

$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]

This illustrates an important point. Most of the code samples you see in this book are actually executed each time I format the book. When you see some output from a program, that output was produced by running the code and inserting the results into the book.

Changes in the Book

Throughout the book Ive tried to mark differences between Ruby 1.9 and 2.0 using a small symbol, like the one here 2.0 . If youre reading this as an ebook, youll see little arrows next to this flag. Clicking those will take you to the next or previous 2.0 change. One change I didnt make: I decided to continue to use the word we when talking about the authors in the body of the book. Many of the words come from the first edition, and I certainly dont want to claim any credit for Andys work on that book.

Changes in the Ruby 2.0 Printing

Compared to the major change that occurred between Ruby 1.8 and Ruby 1.9, the update to Ruby 2 is fairly gentle. This book documents all the updated builtin class changes and the new keyword arguments. It spends some time looking at lazy enumerators, and at the updates to the regular expression engine. But, in general, users of Ruby 1.9 will feel right at home, and folks still using Ruby 1.8 should consider skipping straight to Ruby 2.

Resources

Visit the Ruby website at ).

And Id certainly appreciate hearing from you. Comments, suggestions, errors in the text, and problems in the examples are all welcome. Email us at rubybook@pragprog.com.

If you find errors in the book, you can add them to the errata page. If youre reading the PDF version of the book, you can also report an erratum by clicking the link in the page footers.

Youll find links to the source code for almost all the books example code at http://www.pragprog.com/titles/ruby4 .

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide»

Look at similar books to Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide»

Discussion, reviews of the book Programming Ruby 1.9 & 2.0: The Pragmatic Programmers Guide and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.