By Dave Thomas, Chad Fowler

Ruby is the quickest transforming into and most fun dynamic language in the market. if you want to get operating courses introduced speedy, you want to upload Ruby in your toolbox.

This publication is the single entire reference for either Ruby 1.9 and Ruby 2.0, the very most up-to-date model of Ruby.

2013 marks the 20 th anniversary of the Ruby language. we are proud that all through its heritage, now we have persevered to hide the most recent model of Ruby.

Would you love to head from first notion to operating code a lot, a lot quicker? Do you presently spend extra time enjoyable the compiler rather than your consumers or finish clients? Are you annoyed with difficult languages that appear to get on your method, rather than getting the paintings performed? Are you utilizing Rails, and wish to dig deeper into the underlying Ruby language? if that is so, then we now have a language and publication for you!

Ruby is an absolutely object-oriented language, very like the vintage object-oriented language, Smalltalk. Like Smalltalk, it's dynamically typed (as against Java or C++), yet in contrast to Smalltalk, Ruby positive factors a similar conveniences present in glossy scripting languages comparable to Perl and Python.

The mix of the ability of a natural object-oriented language with the benefit of a scripting language makes Ruby a favourite instrument of clever, forward-thinking programmers.

The Pickaxe comprises 4 significant sections:

An acclaimed instructional on utilizing Ruby. The definitive connection with the language. whole documentation of all integrated sessions, modules, and methods. entire descriptions of all ninety seven average libraries.

This is the reference handbook for Ruby, together with an outline of the entire regular library modules, a whole connection with all integrated periods and modules (including the entire new and altered equipment brought through Ruby 1.9, 1.9.2, 1.9.3, and 2.0). additionally it is all of the new and adjusted syntax and semantics brought in view that Ruby 1.8. know about the recent parameter passing ideas, neighborhood variable scoping in blocks, fibers, and the recent block announcement syntax, between different interesting new features.

About Ruby 2.0

Ruby 2.0 is a minor replace to Ruby 1.9, not like the extra significant updates from Ruby 1.8 to Ruby 1.9.

The significant language alterations in Ruby 2.0 are the addition of key-phrase arguments and the switch to take advantage of UTF-8 because the default resource dossier encoding.

There are a few additions to the normal library, including:

@Enumerator::Lazy@, which provides aid for lazy entry to most likely limitless lists. Refinements let you encapsulate adjustments to third-party sessions, and scope their program to person resource records, combating your alterations from polluting the worldwide application.

You'll additionally locate that Ruby 2 is quicker, and has reminiscence administration advancements that make it extra server-friendly.

All instructed, there are over a hundred and ten sections of the ebook which were flagged and cross-linked to point 2.0 content.

What You Need

This e-book assumes you will have a uncomplicated figuring out of object-oriented programming.

mostly, Ruby programmers are inclined to desire the the command line for working their code, and so they are inclined to use textual content editors instead of IDEs.

* Ruby runs on home windows, Linux, and Macs.

Show description

Read Online or Download Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (The Facets of Ruby) PDF

Similar Programming books

Embedded C

For those who are approximately to write down their first embedded application - or were suffering to profit approximately this significant sector - this ebook will keep weeks of attempt.

Cocoa Design Patterns

“Next time a few child indicates up at my door soliciting for a code overview, this is often the ebook that i'm going to throw at him. ”   –Aaron Hillegass, founding father of immense Nerd Ranch, Inc. , and writer of Cocoa Programming for Mac OS X   Unlocking the secrets and techniques of Cocoa and Its Object-Oriented Frameworks   Mac and iPhone builders are usually crushed via the breadth and class of the Cocoa frameworks.

C++ Primer (5th Edition)

Bestselling Programming educational and Reference thoroughly Rewritten for the recent C++11 regular   absolutely up-to-date and recast for the newly published C++11 common, this authoritative and accomplished advent to C++ may also help you to benefit the language speedy, and to take advantage of it in smooth, powerful methods.

Operating System Concepts

Maintain speed with the fast-developing international of working platforms Open-source working platforms, digital machines, and clustered computing are one of the prime fields of working platforms and networking which are swiftly altering. With massive revisions and organizational adjustments, Silberschatz, Galvin, and Gagne’s working approach techniques, 8th variation is still as present and suitable as ever, assisting you grasp the basic innovations of working platforms whereas getting ready your self for today’s rising advancements.

Additional info for Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide (The Facets of Ruby)

Show sample text content

29 32 37 forty forty three four. packing containers, Blocks, and Iterators . four. 1 Arrays four. 2 Hashes four. three Blocks and Iterators four. four packing containers far and wide . . . . . . . forty five forty five forty seven fifty two sixty eight obtain from Wow! e-book . . . . . . . . . . three three five nine eleven Contents • iv five. Sharing performance: Inheritance, Modules, and Mixins five. 1 Inheritance and Messages five. 2 Modules five. three Mixins five. four Iterators and the Enumerable Module five. five Composing Modules five. 6 Inheritance, Mixins, and layout . . . . sixty nine sixty nine seventy three seventy five seventy seven seventy seven eighty 6. usual kinds . 6. 1 Numbers 6. 2 Strings 6. three levels 7. typical Expressions . . . . . . 7. 1 What typical Expressions allow you to Do 7. 2 Ruby’s general Expressions 7. three Digging Deeper 7. four complicated usual Expressions eight. extra approximately tools . eight. 1 Defining a mode eight. 2 Calling a style . . . . . . . . one hundred fifteen one hundred fifteen 118 nine. Expressions . . . . . . . nine. 1 Operator Expressions nine. 2 Miscellaneous Expressions nine. three task nine. four Conditional Execution nine. five case Expressions nine. 6 Loops nine. 7 Variable Scope, Loops, and Blocks . . . . . . . one hundred twenty five 126 127 128 132 136 138 142 10. Exceptions, trap, and throw 10. 1 The Exception type 10. 2 dealing with Exceptions 10. three elevating Exceptions 10. four capture and throw . . . . . . . . . . a hundred forty five a hundred forty five 146 one hundred fifty 151 eleven. easy enter and Output . . . eleven. 1 what's an IO item? eleven. 2 establishing and shutting records eleven. three examining and Writing documents eleven. four speaking to Networks eleven. five Parsing HTML . . . . . . . . . 153 153 153 154 158 159 12. Fibers, Threads, and procedures . . . 12. 1 Fibers 12. 2 Multithreading 12. three Controlling the Thread Scheduler . . . . . . . 161 161 163 167 obtain from Wow! book . . . . . . . . . . . . . . . . eighty three eighty three 86 ninety . . . . . . . ninety three ninety three ninety four ninety six one zero five Contents 12. four 12. five Mutual Exclusion working a number of approaches •v 167 a hundred and seventy thirteen. Unit checking out . . . . . . thirteen. 1 The trying out Framework thirteen. 2 Structuring checks thirteen. three Organizing and working checks thirteen. four RSpec and Shoulda thirteen. five Test::Unit assertions . . . . . . . . one hundred seventy five 177 181 183 186 193 14. whilst difficulty moves! . . 14. 1 Ruby Debugger 14. 2 Interactive Ruby 14. three Editor help 14. four however it Doesn’t paintings! 14. five yet It’s Too sluggish! . . . . . . . . 195 195 196 197 198 201 . . half II — Ruby in Its atmosphere 15. Ruby and Its international . . . . 15. 1 Command-Line Arguments 15. 2 software Termination 15. three atmosphere Variables 15. four the place Ruby reveals Its Libraries 15. five RubyGems Integration 15. 6 The Rake construct instrument 15. 7 construct surroundings sixteen. . . . . . . . 209 209 214 214 216 217 222 224 Namespaces, resource records, and Distribution sixteen. 1 Namespaces sixteen. 2 Organizing Your resource sixteen. three allotting and fitting Your Code . . . . . . . 225 225 226 233 17. personality Encoding . . . 17. 1 Encodings 17. 2 resource documents 17. three Transcoding 17. four enter and Output Encoding 17. five Default exterior Encoding 17. 6 Encoding Compatibility 17. 7 Default inner Encoding 17. eight enjoyable with Unicode . . . . . . . . . 239 240 240 245 246 248 249 250 251 18. Interactive Ruby Shell . 18. 1 Command Line 18. 2 instructions . . . . . . . . . 253 253 260 19. Documenting Ruby . . . . 19. 1 including RDoc to Ruby Code 19. 2 including RDoc to C Extensions . . . . . . . . 263 266 269 obtain from Wow! booklet . . . Contents 19. three 19. four 19. five working RDoc Ruby resource dossier documented with RDoc C resource dossier documented with RDoc .

Rated 4.59 of 5 – based on 26 votes