About this product: Max's room is a mess! There's a Popsicle melting in the closet, a tube of opened Miracle Bubbles on the floor, and the ant farm ants have escaped under the bed! It's definitely time to clean up. Max's sister, Ruby, is quick to take charge, and of course Max wants to help. But Max has his own ideas about picking up his room, so things don't turn out exactly as Ruby planned. Children will cheer as Max innocently and humorously outsmarts his older sister once again.
"Sure to draw plenty of giggles from the burgeoning Max and Ruby fan club." (Kirkus Reviews)
"Design Patterns in Ruby documents smart ways to resolve many problems that Ruby developers commonly encounter. Russ Olsen has done a great job of selecting classic patterns and augmenting these with newer patterns that have special relevance for Ruby. He clearly explains each idea, making a wealth of experience available to Ruby developers for their own daily work."
—Steve Metsker, Managing Consultant with Dominion Digital, Inc.
"This book provides a great demonstration of the key 'Gang of Four' design patterns without resorting to overly technical explanations. Written in a precise, yet almost informal style, this book covers enough ground that even those without prior exposure to design patterns will soon feel confident applying them using Ruby. Olsen has done a great job to make a book about a classically 'dry' subject into such an engaging and even occasionally humorous read."
—Peter Cooper
"This book renewed my interest in understanding patterns after a decade of good intentions. Russ picked the most useful patterns for Ruby and introduced them in a straightforward and logical manner, going beyond the GoF's patterns. This book has improved my use of Ruby, and encouraged me to blow off the dust covering the GoF book."
—Mike Stok
"Design Patterns in Ruby is a great way for programmers from statically typed objectoriented languages to learn how design patterns appear in a more dynamic, flexible language like Ruby."
—Rob Sanheim, Ruby Ninja, Relevance
Most design pattern books are based on C++ and Java. But Ruby is different—and the language's unique qualities make design patterns easier to implement and use. In this book, Russ Olsen demonstrates how to combine Ruby's power and elegance with patterns, and write more sophisticated, effective software with far fewer lines of code.
After reviewing the history, concepts, and goals of design patterns, Olsen offers a quick tour of the Ruby language—enough to allow any experienced software developer to immediately utilize patterns with Ruby. The book especially calls attention to Ruby features that simplify the use of patterns, including dynamic typing, code closures, and "mixins" for easier code reuse.
Fourteen of the classic "Gang of Four" patterns are considered from the Ruby point of view, explaining what problems each pattern solves, discussing whether traditional implementations make sense in the Ruby environment, and introducing Ruby-specific improvements. You'll discover opportunities to implement patterns in just one or two lines of code, instead of the endlessly repeated boilerplate that conventional languages often require.
Design Patterns in Ruby also identifies innovative new patterns that have emerged from the Ruby community. These include ways to create custom objects with metaprogramming, as well as the ambitious Rails-based "Convention Over Configuration" pattern, designed to help integrate entire applications and frameworks.
Engaging, practical, and accessible, Design Patterns in Ruby will help you build better software while making your Ruby programming experience more rewarding.
About this product: Max has a toy house with two chimneys, three soldiers, four bears, five airplanes, six cars, seven bugs, a lobster with eight legs, nine blocks, and ten train cars. So many toys to play with, but all Max wants is the one thing he can't have-Ruby's doll!
About this product: Surrounded by federal marshals, 6-year-old Ruby Bridges became the first black student ever at the all-white William Frantz Public School in New Orleans, Louisiana, on November 14, 1960. Perhaps never had so much hatred been directed at so perfect a symbol of innocence--which makes it all the more remarkable that her memoir, simple in language and rich in history and sepia-toned photographs, is informed mainly by a sort of bewildered compassion. Throughout, readers will find quotes from newspapers of the time, family members, and teachers; sidebars illustrating how Ruby Bridges pops up in both John Steinbeck's Travels with Charley and a Norman Rockwell painting; and a fascinating update on Bridges's life and civil rights work. A personal, deeply moving historical documentary about a staggeringly courageous little girl at the center of events that already seem unbelievable. (Ages 6 and older) --Richard Farr
Do you want to push Ruby to its limits? The Ruby Cookbook is the most comprehensive problem-solving guide to today's hottest programming language. It gives you hundreds of solutions to real-world problems, with clear explanations and thousands of lines of code you can use in your own projects.
From data structures and algorithms, to integration with cutting-edge technologies, the Ruby Cookbook has something for every programmer. Beginners and advanced Rubyists alike will learn how to program with:
Strings and numbers
Arrays and hashes
Classes, modules, and namespaces
Reflection and metaprogramming
XML and HTML processing
Ruby on Rails (including Ajax integration)
Databases
Graphics
Internet services like email, SSH, and BitTorrent
Web services
Multitasking
Graphical and terminal interfaces
If you need to write a web application, this book shows you how to get started with Rails. If you're a system administrator who needs to rename thousands of files, you'll see how to use Ruby for this and other everyday tasks. You'll learn how to read and write Excel spreadsheets, classify text with Bayesian filters, and create PDF files. We've even included a few silly tricks that were too cool to leave out, like how to blink the lights on your keyboard.
The Ruby Cookbook is the most useful book yet written about Ruby. When you need to solve a problem, don't reinvent the wheel: look it up in the Cookbook.
About this product: You don't have to know everything about a car to drive one, and you don't need to know everything about Ruby to start programming with it. Written for both experienced and new programmers alike, Learning Ruby is a just-get-in-and-drive book -- a hands-on tutorial that offers lots of Ruby programs and lets you know how and why they work, just enough to get you rolling down the road.
Interest in Ruby stems from the popularity of Rails, the web development framework that's attracting new devotees and refugees from Java and PHP. But there are plenty of other uses for this versatile language. The best way to learn is to just try the code! You'll find examples on nearly every page of this book that you can imitate and hack. Briefly, this book:
Outlines many of the most important features of Ruby
Demonstrates how to use conditionals, and how to manipulate strings in Ruby. Includes a section on regular expressions
Describes how to use operators, basic math, functions from the Math module, rational numbers, etc.
Talks you through Ruby arrays, and demonstrates hashes in detail
Explains how to process files with Ruby
Discusses Ruby classes and modules (mixins) in detail, including a brief introduction to object-oriented programming (OOP)
Introduces processing XML, the Tk toolkit, RubyGems, reflection, RDoc, embedded Ruby, metaprogramming, exception handling, and other topics
Acquaints you with some of the essentials of Rails, and includes a short Rails tutorial.
Each chapter concludes with a set of review questions, and appendices provide you with a glossary of terms related to Ruby programming, plus reference material from the book in one convenient location. If you want to take Ruby out for a drive, Learning Ruby holds the keys.
About this product: “BEWARE THE SEVEN blessings . . . ” When she first utters these words, 16-year-old Sally Lockhart doesn’t know their meaning. But when an employee of her late father hears them, he dies of fear. Thus begins Sally’s terrifying journey into the seamy underworld of Victorian London, in search of clues to her father’s mysterious death.
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.
About this product: The last time Ruby hosted a slumber party, her big brother Roosevelt pranked and frightened the girls all night. Now it’s payback time! With a little ingenuity and a lot of lipstick, Ruby and her crew come up with some hilarious high jinks that are sure to teach Roosevelt a valuable lesson. Bottom line—don’t mess with Ruby Booker!
About this product: Ruby on Rails is the revolutionary online programming tool that makes creating functional e-commerce web sites faster and easier than ever. With the intuitive, straightforward nature of Ruby and the development platform provided by Rails, you can put together full-fledged web applications quickly, even if you're new to web programming.
You will find a thorough introduction to both Ruby and Rails in this book. You'll get the easy instructions for acquiring and installing both; understand the nature of conditionals, loops, methods, and blocks; and become familiar with Ruby's classes and objects. You'll learn to build Rails applications, connect to databases, perform necessary testing, and put the whole thing together to create real-world applications such as shopping carts and online catalogs--apps you can actually use right away.
What you will learn from this book * How to install and use Ruby and Rails * Object-oriented programming with Ruby * Rails fundamentals and how to create basic online applications * How to work with HTML controls, use models in Rails applications, and work with sessions * Details on working with databases and creating, editing, and deleting database records * Methods for handling cookies and filters and for caching pages * How to connect Rails with Ajax
Who this book is for
This book is for anyone who wants to develop online applications using Ruby and Rails. A basic understanding of programming is helpful; some knowledge of HTML is necessary.
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.