Practical Ruby Projects: Ideas for the Eclectic Programmer

Want to take Ruby to the limit? Looking for new, powerful, and creative ideas that will take Ruby beyond Rails and web programming? If you’re comfortable with Ruby, you’ll be itching to go further–apply Practical Ruby Projects: Fresh Ideas with Ruby and become a master of advanced Ruby techniques.

Rubyist Topher Cyll brings several imaginative projects to this book, ranging from making generative music, animations, and turn-based games to implementing simulations, algorithms, and even an implementation of Lisp!

Art, music, theory, and games–this book has it all. Best of all, it’s all done with Ruby.

Each chapter, in addition to making you say “Cool–I hadn’t thought of that before,” looks at solving tricky development problems, enforces best practices, and encourages creative thinking. You’ll be building your own exciting, imaginative Ruby Projects in no time.

  • Create imaginative and innovative Ruby programming projects.
  • Learn how to solve tricky development problems, be guided by best practices, and be inspired to think creatively.
  • Don’t waste time on the basics–it’s assumed you know the fundamentals of Ruby already.

What you’ll learn

  • How to set up Ruby on Windows, Mac OSX, and Linux
  • How to create UIs with RubyCocoa
  • How to create a Lisp implementation in Ruby
  • How to create generative music and turn-based adventure games in Ruby
  • How to model things and create algorithms in Ruby
  • Several more Ruby best practices and programming techniques that will save you hours of programming time

Who is this book for?

This book is for anyone who has mastered the basics of Ruby and wants to learn advanced Ruby techniques.

About the Apress Practical Series

The Practical series from Apress is your best choice for getting the job done, period. From professional to expert, this series lets you apply project-motivated templates (or frameworks) step by step in a very direct, practical, and efficient manner toward current real-world projects that may be sitting on your desk. So whatever your career goal, Apress can be your trusted guide to take you where you want to go on your IT career empowerment path.

About the Author

Topher Cyll is a software engineer and writer living in Cambridge, Massachusetts. He received his bachelor’s degree in computer science from Williams College and works for a small Boston-area startup.

In reverse alphabetical order, he finds programming languages, music, Free Software, education, bioengineering, and beer terribly exciting.

Topher loves Ruby not only for the language itself, but also the light-hearted and intellectually curious community that surrounds it.

  • Taschenbuch: 328 Seiten
  • Verlag: (2007-12-10 )
  • Preis: 24.44 €
  • Sprache: english
  • ISBN-10: 159059911X
  • Autor(en): Topher Cyll
  • kaufen

Practical Ruby Gems

Practical Ruby Gems is a comprehensive guide to utilizing and creating Ruby Gems ready-made Ruby code modules that can be easily added to Ruby and Rails projects. This book is ideal for Ruby programmers as well as web developers who use Rails and wish to extend the functionality of their projects.

You’ll get a prime selection of 34 of the best and most useful Gems, which makes up the core of this book. Each of these also comes complete with actual use cases and code examples that you can use immediately in your own projects. You ll learn how Ruby Gems can be used to * Validate credit cards. * Create graphical interfaces on multiple platforms. * Speed up Rails applications. * Develop lightweight web applications. * Use ActiveRecord to make databases easy. * Process RSS feeds. * Prevent spam using CAPTCHA. * Crop and scale images. * Tap into the same caching system that runs LiveJournal.com. And much, much more! You ll also learn how to package and distribute your own Ruby Gems. This lets you tap into powerful mechanisms for resolving dependencies.And the book takes a detailed look at how Gems differ between operating systems, so you ll be prepared whether your desktop runs OS X, Windows, or Linux.

You ll also learn how you can share code more easily between projects, optionally sharing your contributions with the world!

  • Taschenbuch: 271 Seiten
  • Verlag: (2007-04-25 )
  • Preis: 22.45 €
  • Sprache: english
  • ISBN-10: 1590598113
  • Autor(en): David Berube
  • kaufen

Professional Ruby Series, CD-ROM Mongrel, Routing, RESTful, Plugins, and Rubyisms

Rails Routing focuses on the extensive and powerful routing subsystem in Rails–the suite of techniques for manipulating the process by which incoming requests to a Rails application can be matched with, or mapped to, specific actions. Rails Refactoring to Resources. If you’re new to Representational State Transfer (REST), this Short Cut will help you decide which parts of the REST paradigm you want to introduce to your application. If you’re a developer with more RESTful experience, it will introduce you to some refactorings that will give your application a cleaner, leaner code base. Rubyisms in Rails is an examination of how the style of Ruby informs the design of Rails.

In particular, it looks at a few specific examples of how Rails‘ internal code is implemented in Ruby to instruct about Ruby’s design principles. Rails Plugins teaches you what plugins are, how they work, and why they’re useful. Discover how to find and install plugins using the provided script, then explore the world of plugin development, including common plugin idioms, testing, and version control. Finally, learn how to share your own plugins. Mongrel introduces the fast, versatile Ruby Web server.If you build or manage Web applications, this will be a useful reference as you set up and use Mongrel in your development and production environments.

Also teaches how to extend Mongrel.

  • Taschenbuch: 192 Seiten
  • Verlag: (2007-08-05 )
  • Preis: 25.59 €
  • Sprache: english
  • ISBN-10: 0132417995
  • Autor(en): Dave Thomas, David A. Black
  • kaufen

Design Patterns in Ruby (Addison-Wesley Professional Ruby)

Praise for Design Patterns in Ruby "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.

  • Taschenbuch: 384 Seiten
  • Verlag: (2007-12-21 )
  • Preis: 37.06 €
  • Sprache: english
  • ISBN-10: 0321490452
  • Autor(en): Russ Olsen
  • kaufen

Prototype and script.aculo.us. You Never Knew JavaScript Could Do This! (Pragmatic Programmers)

Web applications are getting richer and richer, with more interaction baked in every day. But JavaScript, DOM, CSS and a full host of other Web standards are quite complex, and the result isn’t always browser compliant. The Prototype and script.aculo.us libraries are veritable treasure troves, smoothing over all the usual nitty-gritty differences between browsers, and making most common features a breeze to implement.

With this book, you can quickly wield the whole power of these extraordinary libraries. You can dive into Prototype, the library that makes JavaScript so much more powerful, and it looks a lot like Ruby code.Exploring the DOM, handling events, taming AJAX, and radically simplifying most of your scripting code: it all becomes easy – and very portable – with Prototype. When it comes to advanced UI features, script.aculo.us is every web developer’s dream come true: whether you need to create auto-completed text inputs, implement in-place editors, provide customized drag-and-drop behaviors, capture your users‘ attention with visual effects or simply build DOM fragments more efficiently, it’s all there, and lightweight too.

This book guides you through all the details of these features, letting you use many technologies on the server side, such as PHP, vanilla Ruby, and Ruby On Rails, in countless examples illustrating every aspect. Power users will also learn the design philosophies of the libraries, and how to contribute to them and augment them for their own needs.

  • Taschenbuch: 436 Seiten
  • Verlag: (2008-01-25 )
  • Preis: 18.44 €
  • Sprache: english
  • ISBN-10: 1934356018
  • Autor(en): Christophe Porteneuve
  • kaufen

Flexible Rails: Flex 3 on Rails 2

Flexible Rails is a unique, application-based guide for using Ruby on Rails and Adobe Flex to build rich Internet applications (RIAs). It is not an exhaustive Ruby on Rails or a Flex reference. Instead, it is an extensive tutorial in which the reader builds multiple iterations of an interesting RIA using Flex and Rails together.

Author Peter Armstrong walks readers through over a dozen iterations in which the sample application – pomodo – is variously built, refactored, debugged, sliced, diced, and otherwise explored from every conceivable angle with respect to Ruby on Rails and Adobe Flex. The book unfolds both the application and the Flex-on-Rails approach side-by-side. If you’re doing any work on Flex and Ruby, I’d highly recommend getting a copy of Flexible Rails. – Mike Potter, Adobe Developer Relations For those of you who want a little more richness in your application interfaces, and Ajax just isn’t cutting it, Flexible Rails is exactly what you’ve been waiting for. – Steven Baker, creator of RSpec, the BDD framework for Ruby.

  • Taschenbuch: 592 Seiten
  • Verlag: (2008-01-25 )
  • Preis: 33.99 €
  • Sprache: english
  • ISBN-10: 1933988509
  • Autor(en): Peter Armstrong
  • kaufen