Amazon cover image
Image from Amazon.com
Image from Google Jackets

The Ruby way / Hal Fulton.

By: Material type: TextTextSeries: Addison-Wesley professional Ruby seriesPublication details: Upper Saddle River, NJ : Addison-Wesley, c2007.Edition: 2nd edDescription: xlviii, 839 p. : ill. ; 23 cmISBN:
  • 9780672328848
Subject(s): DDC classification:
  • 005.117   22
Contents:
Foreword -- Acknowledgments -- About the Author -- Ruby in Review -- An Introduction to Object Orientation -- What Is an Object? -- Inheritance -- Polymorphism -- A Few More Terms -- Basic Ruby Syntax and Semantics -- Keywords and Identifiers -- Comments and Embedded Documentation -- Constants, Variables, and Types -- Operators and Precedence -- A Sample Program -- Looping and Branching -- Exceptions -- OOP in Ruby -- Objects -- Built-in Classes -- Modules and Mixins -- Creating Classes -- Methods and Attributes -- Dynamic Aspects of Ruby -- Coding at Runtime -- Reflection -- Missing Methods -- Garbage Collection (GC) -- Training Your Intuition: Things to Remember -- Syntax Issues -- Perspectives in Programming -- Ruby's case Statement -- Rubyisms and Idioms -- Expression Orientation and Other Miscellaneous Issues -- Ruby Jargon and Slang -- Conclusion -- Working with Strings -- Representing Ordinary Strings -- Representing Strings with Alternate Notations -- Using Here-Documents -- Finding the Length of a String -- Processing a Line at a Time -- Processing a Byte at a Time -- Performing Specialized String Comparisons -- Tokenizing a String -- Formatting a String -- Using Strings As IO Objects -- Controlling Uppercase and Lowercase -- Accessing and Assigning Substrings -- Substituting in Strings -- Searching a String -- Converting Between Characters and ASCII Codes -- Implicit and Explicit Conversion -- Appending an Item Onto a String -- Removing Trailing Newlines and Other Characters -- Trimming Whitespace from a String -- Repeating Strings -- Embedding Expressions Within Strings -- Delayed Interpolation of Strings -- Parsing Comma-Separated Data -- Converting Strings to Numbers (Decimal and Otherwise) -- Encoding and Decoding rot13 Text -- Encrypting Strings -- Compressing Strings -- Counting Characters in Strings -- Reversing a String -- Removing Duplicate Characters -- Removing Specific Characters -- Printing Special Characters -- Generating Successive Strings -- Calculating a 32-Bit CRC -- Calculating the MD5 Hash of a String -- Calculating the Levenshtein Distance Between Two Strings -- Encoding and Decoding base64 Strings -- Encoding and Decoding Strings (uuencode/uudecode) -- Expanding and Compressing Tab Characters -- Wrapping Lines of Text -- Conclusion -- Working with Regular Expressions -- Regular Expression Syntax -- Compiling Regular Expressions -- Escaping Special Characters -- Using Anchors -- Using Quantifiers -- Positive and Negative Lookahead -- Accessing Backreferences -- Using Character Classes -- Extended Regular Expressions -- Matching a Newline with a Dot -- Using Embedded Options -- Using Embedded Subexpressions -- Ruby and Oniguruma -- Testing the Presence of Oniguruma -- Building Oniguruma -- A Few New Features of Oniguruma -- Positive and Negative Lookbehind -- More on Quantifiers -- Named Matches -- Recursion in Regular Expressions -- A Few Sample Regular Expressions -- Matching an IP Address -- Matching a Keyword-Value Pair -- Matching Roman Numerals -- Matching Numeric Constants.
Summary: Ruby is an agile object-oriented language, borrowing some of the best features from LISP, Smalltalk, Perl, CLU, and other languages. Its popularity has grown tremendously in the five years since the first edition of this book. The Ruby Way takes a “how-to” approach to Ruby programming with the bulk of the material consisting of more than 400 examples arranged by topic. Each example answers the question “How do I do this in Ruby?” Working along with the author, you are presented with the task description and a discussion of the technical constraints. This is followed by a step-by-step presentation of one good solution. Along the way, the author provides detailed commentary and explanations to aid your understanding. Coverage includes • An overview of Ruby, explaining terminology and basic principles • Operations on low-level data types (numbers, strings, regular expressions, dates) • The new regular expression engine (Oniguruma) • Internationalization (I18N) and message catalogs in Ruby • Operations on hashes, arrays, and other data structures such as stacks, trees, and graphs • Working with general I/O, files, and persistent objects • Database coverage including MySQL, SQLite, Oracle, DBI, and more • Ruby-specific techniques in OOP and dynamic programming • Graphical interfaces in Ruby (Tk, GTK+, Fox, and Qt) • Working with Ruby threads for lightweight multitasking • Everyday scripting and system administration in Ruby • Working with image files, PDFs, YAML, XML, RSS, and Atom • Testing, debugging, profiling, and packaging Ruby code • Low-level network programming and client-server interaction • Web development tools including Rails, Nitro, Wee, IOWA, and more • Working with distributed Ruby, Rinda, and Ring • Ruby development tools such as IDEs, documentation tools, and more The source code for the book can be downloaded from www.rubyhacker.com Hal Fulton has worked for over 15 years with variousforms of Unix, including AIX, Solaris, and Linux. He was first exposed to Ruby in 1999, and in 2001 he began work on the first edition of this book–the second Ruby book published in the English language. He has attendednumerous Ruby conferences and has given presentations at several of those, including the first European Ruby Conference. He has two degrees in computer science from the University of Mississippi and taught computer science for four years before moving to Austin, Texas to work as a contractor for variouscompanies, including IBM Austin. Hal currently works at Broadwing Communications in Austin, Texas, maintaining a large data warehouse and related telecom applications, working daily with C++, Oracle, and, of course, Ruby.
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Current library Call number Copy number Status Date due Barcode
Books Books Main library General Stacks 005.117 / FU.R 2007 (Browse shelf(Opens below)) 1 Available 000604

Includes index.

Foreword -- Acknowledgments -- About the Author -- Ruby in Review -- An Introduction to Object Orientation -- What Is an Object? -- Inheritance -- Polymorphism -- A Few More Terms -- Basic Ruby Syntax and Semantics -- Keywords and Identifiers -- Comments and Embedded Documentation -- Constants, Variables, and Types -- Operators and Precedence -- A Sample Program -- Looping and Branching -- Exceptions -- OOP in Ruby -- Objects -- Built-in Classes -- Modules and Mixins -- Creating Classes -- Methods and Attributes -- Dynamic Aspects of Ruby -- Coding at Runtime -- Reflection -- Missing Methods -- Garbage Collection (GC) -- Training Your Intuition: Things to Remember -- Syntax Issues -- Perspectives in Programming -- Ruby's case Statement -- Rubyisms and Idioms -- Expression Orientation and Other Miscellaneous Issues -- Ruby Jargon and Slang -- Conclusion -- Working with Strings -- Representing Ordinary Strings -- Representing Strings with Alternate Notations -- Using Here-Documents -- Finding the Length of a String -- Processing a Line at a Time -- Processing a Byte at a Time -- Performing Specialized String Comparisons -- Tokenizing a String -- Formatting a String -- Using Strings As IO Objects -- Controlling Uppercase and Lowercase -- Accessing and Assigning Substrings -- Substituting in Strings -- Searching a String -- Converting Between Characters and ASCII Codes -- Implicit and Explicit Conversion -- Appending an Item Onto a String -- Removing Trailing Newlines and Other Characters -- Trimming Whitespace from a String -- Repeating Strings -- Embedding Expressions Within Strings -- Delayed Interpolation of Strings -- Parsing Comma-Separated Data -- Converting Strings to Numbers (Decimal and Otherwise) -- Encoding and Decoding rot13 Text -- Encrypting Strings -- Compressing Strings -- Counting Characters in Strings -- Reversing a String -- Removing Duplicate Characters -- Removing Specific Characters -- Printing Special Characters -- Generating Successive Strings -- Calculating a 32-Bit CRC -- Calculating the MD5 Hash of a String -- Calculating the Levenshtein Distance Between Two Strings -- Encoding and Decoding base64 Strings -- Encoding and Decoding Strings (uuencode/uudecode) -- Expanding and Compressing Tab Characters -- Wrapping Lines of Text -- Conclusion -- Working with Regular Expressions -- Regular Expression Syntax -- Compiling Regular Expressions -- Escaping Special Characters -- Using Anchors -- Using Quantifiers -- Positive and Negative Lookahead -- Accessing Backreferences -- Using Character Classes -- Extended Regular Expressions -- Matching a Newline with a Dot -- Using Embedded Options -- Using Embedded Subexpressions -- Ruby and Oniguruma -- Testing the Presence of Oniguruma -- Building Oniguruma -- A Few New Features of Oniguruma -- Positive and Negative Lookbehind -- More on Quantifiers -- Named Matches -- Recursion in Regular Expressions -- A Few Sample Regular Expressions -- Matching an IP Address -- Matching a Keyword-Value Pair -- Matching Roman Numerals -- Matching Numeric Constants.

Ruby is an agile object-oriented language, borrowing some of the best features from LISP, Smalltalk, Perl, CLU, and other languages. Its popularity has grown tremendously in the five years since the first edition of this book. The Ruby Way takes a “how-to” approach to Ruby programming with the bulk of the material consisting of more than 400 examples arranged by topic. Each example answers the question “How do I do this in Ruby?” Working along with the author, you are presented with the task description and a discussion of the technical constraints. This is followed by a step-by-step presentation of one good solution. Along the way, the author provides detailed commentary and explanations to aid your understanding. Coverage includes • An overview of Ruby, explaining terminology and basic principles • Operations on low-level data types (numbers, strings, regular expressions, dates) • The new regular expression engine (Oniguruma) • Internationalization (I18N) and message catalogs in Ruby • Operations on hashes, arrays, and other data structures such as stacks, trees, and graphs • Working with general I/O, files, and persistent objects • Database coverage including MySQL, SQLite, Oracle, DBI, and more • Ruby-specific techniques in OOP and dynamic programming • Graphical interfaces in Ruby (Tk, GTK+, Fox, and Qt) • Working with Ruby threads for lightweight multitasking • Everyday scripting and system administration in Ruby • Working with image files, PDFs, YAML, XML, RSS, and Atom • Testing, debugging, profiling, and packaging Ruby code • Low-level network programming and client-server interaction • Web development tools including Rails, Nitro, Wee, IOWA, and more • Working with distributed Ruby, Rinda, and Ring • Ruby development tools such as IDEs, documentation tools, and more The source code for the book can be downloaded from www.rubyhacker.com Hal Fulton has worked for over 15 years with variousforms of Unix, including AIX, Solaris, and Linux. He was first exposed to Ruby in 1999, and in 2001 he began work on the first edition of this book–the second Ruby book published in the English language. He has attendednumerous Ruby conferences and has given presentations at several of those, including the first European Ruby Conference. He has two degrees in computer science from the University of Mississippi and taught computer science for four years before moving to Austin, Texas to work as a contractor for variouscompanies, including IBM Austin. Hal currently works at Broadwing Communications in Austin, Texas, maintaining a large data warehouse and related telecom applications, working daily with C++, Oracle, and, of course, Ruby.

1

There are no comments on this title.

to post a comment.