By Dave Thomas

Ruby is an more and more well known, totally object-oriented dynamic programming language, hailed via many practitioners because the most interesting and most precious language to be had at the present time. whilst Ruby first burst onto the scene within the Western international, the Pragmatic Programmers have been there with the definitive reference guide, Programming Ruby: The Pragmatic Programmer's consultant.

Now in its moment variation, writer Dave Thomas has accelerated the recognized Pickaxe ebook with over two hundred pages of recent content material, overlaying all of the new and superior language positive factors of Ruby 1.8 and traditional library modules. The Pickaxe comprises 4 significant sections: An acclaimed instructional on utilizing Ruby. The definitive connection with the language. whole documentation on all integrated sessions, modules, and strategies entire descriptions of all ninety eight typical libraries.

If you loved the 1st version, you are going to delight in the recent and increased content material, together with: stronger insurance of deploy, packaging, documenting Ruby resource code, threading and synchronization, and adorning Ruby's functions utilizing C-language extensions. Programming for the world-wide internet is simple in Ruby, with new chapters on XML/RPC, cleaning soap, disbursed Ruby, templating platforms and different internet companies. there is even a brand new bankruptcy on unit trying out.

This is the definitive reference handbook for Ruby, together with an outline of the entire ordinary library modules, an entire connection with all integrated periods and modules (including greater than 250 major adjustments because the First Edition). insurance of alternative gains has grown greatly, together with information on easy methods to harness the delicate services of irb, so that you can dynamically learn and scan together with your working code. "Ruby is a perfectly strong and beneficial language, and every time i am operating with it this booklet is at my aspect" --Martin Fowler, leader Scientist, ThoughtWorks

Show description

Read Online or Download Programming Ruby: The Pragmatic Programmers' Guide, Second Edition PDF

Similar object-oriented software design books

Java & XML: Solutions to Real-World Problems

With the XML ''buzz'' nonetheless dominating speak between net builders, there is a actual have to how you can reduce in the course of the hype and positioned XML to paintings. Java & XML exhibits find out how to use the APIs, instruments, and tips of XML to construct real-world functions. the result's code and knowledge which are transportable. This moment version provides chapters on complicated SAX and complex DOM, new chapters on cleaning soap and information binding, and new examples all through.

Data Structures for Computational Statistics

Because the starting of the seventies machine is out there to exploit programmable pcs for varied projects. through the nineties the has constructed from the massive major frames to private workstations. these days it isn't in simple terms the that's even more strong, yet workstations can do even more paintings than a major body, in comparison to the seventies.

Object-Oriented Analysis, Design and Implementation: An Integrated Approach

The second one version of this textbook contains revisions in response to the suggestions at the first version. In a brand new bankruptcy the authors offer a concise creation to the rest of UML diagrams, adopting an analogous holistic technique because the first version. utilizing a case-study-based strategy for delivering a entire creation to the rules of object-oriented layout, it includes:A sound footing on object-oriented options resembling periods, gadgets, interfaces, inheritance, polymorphism, dynamic linking, and so forth.

Additional info for Programming Ruby: The Pragmatic Programmers' Guide, Second Edition

Sample text

To_s Excellent, we’re making progress. However, we’ve slipped something subtle into the mix. We said that Ruby supports to_s for all objects, but we didn’t say how. The answer has to do with inheritance, subclassing, and how Ruby determines what method to run when you send a message to an object. This is a subject for a new section, so. . Inheritance and Messages Inheritance allows you to create a class that is a refinement or specialization of another class. For example, our jukebox has the concept of songs, which we encapsulate in class Song.

Sometimes an attribute simply returns the value of an instance variable. Sometimes an attribute returns the result of a calculation. And Prepared exclusively for Margus Pau C LASS VARIABLES AND C LASS M ETHODS 31 sometimes those funky methods with equals signs at the end of their names are used to update the state of an object. So the question is, where do attributes stop and regular methods begin? What makes something an attribute, and not just a plain old method? Ultimately, that’s one of those “angels on a pinhead” questions.

In pseudo-code, this may look like # within class Array... def each for each element # <-- not valid Ruby yield(element) end end Prepared exclusively for Margus Pau R EADING AND ’R ITING 21 Many of the looping constructs that are built into languages such as C and Java are simply method calls in Ruby, with the methods invoking the associated block zero or more times. each {|char| print char } produces: cat dog horse *****3456abcde Here we ask the object 5 to call a block five times and then ask the object 3 to call a block, passing in successive values until it reaches 6.

Download PDF sample

Rated 4.92 of 5 – based on 13 votes