Index Bookstores Magazines My Books Book Reviews Book Bytes About Us Help
Bublos.com
Find Books Faster … Buy Books Cheaper, at Bublos
The Web's Favorite Book Price Comparison Site
Christianbook
Country:   Max. Timeout:      
  Join Bublos   Sign In   
 

Advanced Rails

Advanced Rails at Amazon.com


Share this book with other people •
 Link to This PageBublos Link Del.ico.usDel.icio.us 
 Tell a FriendTell a friend about this book 

ISBN: 0596510322 - Advanced Rails  
Title:Advanced Rails
Author:Brad Ediger
Publisher:O'Reilly Media, Inc.
Type:Book / Paperback
Publication Date:11 January, 2008
ISBN / ISBN-13:0596510322  /  9780596510329
List Price:$34.99
You Save:$5.25
Amazon Price:$29.74

* This book is also available, brand-new, from 3rd-party marketplace sellers at Amazon.com, from $15.64.



Check for the same book at these other US book sites:

• [ Abebooks ]   • [ Alibris ]   • [ Barnes & Noble ]   • [ Half.com ]   • [ Powells ]    … or check UK bookstores
 
Editorial Review / Publisher's Information:

Product Description
Ready to go to the next level with Rails? From examining the parts of Ruby that make this framework possible to deploying large Rails applications, Advanced Rails offers you an in-depth look at techniques for dealing with databases, security, performance, web services and much more. Chapters in this book help you understand not only the tricks and techniques used within the Rails framework itself, but also how to make use of ideas borrowed from other programming paradigms. Advanced Rails pays particular attention to building applications that scale -- whether "scale" means handling more users, or working with a bigger and more complex database. You'll find plenty of examples and code samples that explain: Aspects of Ruby that are often confusing or misunderstood Metaprogramming How to develop Rails plug-ins Different database management systems Advanced database features, including triggers, rules, and stored procedures How to connect to multiple databases When to use the Active Support library for generic, reusable functions Security principles for web application design, and security issues endemic to the Web When and when not to optimize performance Why version control and issue tracking systems are essential to any large or long-lived Rails project Advanced Rails also gives you a look at REST for developing web services, ways to incorporate and extend Rails, how to use internationalization, and many other topics. If you're just starting out with rails, or merely experimenting with the framework, this book is not for you. But if you want to improve your skills with Rails through advanced techniques, this book is essential.

Other Items You May Enjoy:
Browse Books From These Related Subjects:
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Business & Culture  ›› Privacy  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Networking  ›› Network Security  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Programming  ›› Software Design, Testing & Engineering  ›› Object-Oriented Design  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Programming  ›› Software Design, Testing & Engineering  ›› Software Development  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Programming  ›› General  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Programming  ›› Languages & Tools  ›› General  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Web Development  ›› Programming  ›› General  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› General  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Computer Science  ›› General  
•  All Subjects  ›› Subjects  ›› Computers & Internet  ›› Software  ›› General  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› By Publisher  ›› O'Reilly  ›› Programming  ›› Web Programming  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› By Publisher  ›› O'Reilly  ›› Programming  ›› General  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› By Publisher  ›› O'Reilly  ›› Web Development  ›› Web Authoring & Design  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› By Publisher  ›› O'Reilly  ›› Internet Security  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› New & Used Textbooks  ›› Computer Science  ›› Object-Oriented Software Design  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› New & Used Textbooks  ›› Computer Science  ›› Programming Languages  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› New & Used Textbooks  ›› Computer Science  ›› Software Design & Engineering  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› New & Used Textbooks  ›› Computer Science  ›› General AAS  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  ›› New & Used Textbooks  ›› General AAS  
•  Accessories  ›› Formats  
•  Alternative Formats  
•  Audiobooks  
•  Boxed Sets  
•  Calendars  
•  eDocs  
•  Historical Reproductions  
•  Large Print  
•  Libros en español  
•  Sheet Music & Scores  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  
•  All Titles  ›› Qualifying Textbooks  
•  Arts & Photography  
•  Biographies & Memoirs  
•  Business & Investing  
•  Children's Books  
•  Computers & Internet  
•  Cooking, Food & Wine  
•  Engineering  
•  Entertainment  
•  Gay & Lesbian  
•  General AAS  
•  Home & Garden  
•  Literature & Fiction  
•  Medicine  
•  Nonfiction  
•  Outdoors & Nature  
•  Parenting & Families  
•  Professional  
•  Reference  
•  Religion & Spirituality  
•  Science  
•  Teens  
•  Travel  
•  All Subjects  ›› Specialty Stores  ›› Custom Stores  
•  All Subjects  ›› Refinements  ›› Edition (format)  ›› Illustrated  
•  Mass Market  ›› Paperback  
•  Trade  
•  All Subjects  ›› Refinements  ›› Binding (binding)  
•  All Subjects  ›› Refinements  ›› Format (feature_browse-bin)  ›› Printed Books  

Customer Reviews:

 • A Must-read For Any Experienced Rails Developer
19 May, 2008

This book is almost worth it just for the first chapter's dive into Ruby metaprogramming, but the rest of the book doesn't disappoint. Ediger delivers useful advice regarding available methods, alternatives and considerations that all serious web developers should take into account. This book should be non-optional for all Rails development teams, as it has some of the most sane and sober treatment of relevant topics I've ever read in a single book. From security to databases to deployment, this book gives the reader a solid foundation in nearly all of the major disciplines involved in building web applications.

- Reviewed by customer ID: ARLKWJQGZ25HG

 • A Great Intermediate/advanced Rails Guide - A Must Addition To Any Ror Bookshelf
25 January, 2008

For a programmer who doesn't work in an office full of rails gurus this book answers a ton of questions I would like to ask, but have no one I could ask. Half of the book is bits of rails wisdom mixed in with recipe like code snippets. A very timely book for me. I especially like the further reading sections at the end of each chapter. The book is new enough that all the links are current, and I have learned a few nuggets of knowledge from these as well. The section on globalize was immediately useful on one of my current projects and returned my investment in the book many times over. No wonder amazon only has one left today.

- Reviewed by customer ID: AT43BV67JJRF2

 • Good Rails Companion Book
02 April, 2008

With 'Advanced Rails' the O'Reilly family of Rails books is looking to add a Rails book that talks about some of the extra stuff you can do with this great technology. At 300+ pages long this isn't a book with 'Learning' in the title, rather it assumes that you have some fundamental Rails knowledge and are looking to improve your skill set. Chapter Overview: 01. Metaprogramming 02. ActiveSupport and RailTies 03. Rails Plugins 04. Database Stuff 05. Security 06. Performance 07. REST and Web Services 08. i18n and L10n 09. Incorporating and Extending Rails 10. Large Projects (Source Control and the like) Rails is a powerful framework but it isn't an easy one to always understand and get working. If you are looking to use Rails in your web app and want to get better at understanding the ins and out of it, this book can really help fill in the blanks. If you want to become a better Rails developer/admin pick up this book and get better immediately. **** RECOMMENDED

- Reviewed by customer ID: A2TVJ0YDW3QO63

 • An Essential Rails Resource
07 July, 2008

Although the title suggest otherwise, Advanced Rails is really required reading for anyone using Rails - beginners and gurus alike. The information provided is excellent, with essential tips and sound advice. In particular, the chapters on routing, security, internationalization and database issues are well worth the purchase price. Like Obie's The Rails Way (Addison-Wesley Professional Ruby Series), this book should live on your desk in your workspace. What's missing? Well, it would have been nice to see information on Git considering the effort put into covering source control systems. It's also surprising that there is not more on testing techniques and issues. But overall, this book is fantastic, and chocked full of juicy info you won't find in any of the other Rails books currently available.

- Reviewed by customer ID: A207B83PZMWDIU

 • Limited Depth But Lots Of Topics And Good Information
27 February, 2008

As Ruby on Rails rocketed into the development community's hearts and minds a few years ago, the number of books on the subject climbed with it. However, a lot of these books were introductory in nature (Agile Web Development with Rails, Beginning Rails, Build Your Own Rails Applications, etc.). What's a budding Rails-head to do once they've gotten the basics down? Books like Advanced Rails -- which was released late last year by O'Reilly - aim to fill this void. Author Brad Ediger has been kicking around the Rails scene since the pre-1.0 days. Though not a Rails "luminary" necessarily, he certainly qualifies as an advanced user. He is CTO for a Real Estate tech company called Tasman Labs and runs a web design (and Rails consulting) firm called Madriska Media Group. He seems like a sharp cookie and a decent writer. Advanced Rails covers quite a bit of territory, going for breadth rather than depth most of the time. Each chapter covers a classic, pivotal development concern... well, at least most of them do. The chapters are as follows: 1. Foundational Techniques 2. ActiveSupport and RailTies 3. Rails Plugins 4. Database 5. Security 6. Performance 7. REST, Resources, and Web Services 8. i18n and L10n 9. Incorporating and Extending Rails 10. Large Projects By "Foundational Techniques", Ediger is referring to Ruby and Rails techniques, principals and patterns like Metaprogramming, Don't Repeat Yourself, and Functional Programming techniques. The chapter also goes into a fair amount detail about the Object/Class/Module relationship. A bunch of this may not be particularly new material for most Rails users who've been at it for at least a few months. However, it's still nice to have all this stuff in one forty page chapter... good to have handy to refer to. Also, there are some nice nuggets in there that could save you some head-scratching. For example, what's the difference between Kernel#lambda and Proc.new? The answer is that, if you *return* a value from the block passed to Proc.new, the calling method is exited as well, abandoning any code that you might have after it. If the first chapter feels like it's leaning towards a reference work, the second chapter -- which digs into all the goodies offered by ActiveSupport and RailTies -- pretty much falls over right into reference-land, complete with a method-by-method listing of features added to standard library classes. This may seem even more like just putting api docs available online into print, but Eidger defintely adds a bit more explanation. And, I haven't really seen anyone give a rundown of just what the heck RailTies does. That's the library that provides the glue to pull together the more famous Rails libraries to make it all work together as rails: generators, initializers, etc. There is definitely some interesting and not necessarily readily available information here. Chapter three covers Rails Plugins, and is quick and painless. It explains the common files and directory structure in a plugin and talks about how Rails loads them. It also talks about using Piston instead of svn:externals to manage plugins and show some example plugins. The following three chapters cover more of the classic eternal problems faced in running high-traffic sites: databases, security, and performance. These really make the most sense in an "advanced" book; they are the "brass tacks" that everyone must get down too if they go beyond the "toy app" stage. Ediger talks about the strengths and weaknesses of the various popular database systems. He also goes into the benefits of using the filesystem to store data, which is largely because web servers can make use of fast system calls to dump files straight into the TCP socket. He also covers some advanced db features like composite keys, stored procedures and clustering. The security chapter isn't all that long and a lot of the info it covers can be found in beginner Rails books... SQL injection, cross-site scripting etc. However, the book would be remiss to not include this material and it is presented in a concise and complete manner. This would be good to refer back to now and then to make sure you haven't slipped in your security awareness. Ediger also doesn't hesitate to make specific recommendations, like "whitelist rather than blacklist". He also jumps right into recommendations while writing about performance optimization in the next chapter: "Algorithmic improvements always beat code tweaks", "As a general rule, maintainability beats performance", "Only optimize what matters", "Measure twice, cut once". He then goes on to cover specific tools and techniques for uncovering your bottlenecks, from a quick explanation of basic statistics to using httpperf, benchmark, and Rails Analyzer Tools, improving database calls (using indexes and "include" on finders), and the various caching solutions. There is plenty of good information in this chapter; also a good bit of reference next time you need to track down a logjam. Chapter seven covers RESTful Rails, from the very basic theory as outlined by Roy Fielding to exactly how Rails has chosen to use these concepts, and is the longest chapter in the book. The amount of coverage REST gets seems questionable since Rails has been very heavily into the RESTful approach for over a year and embraced the philosophy so thoroughly that it's hard to imagine anyone using Rails today without being exposed to the concepts. On the other hand, one can still wire up verb-oriented actions in routes.rb and might be able to get away with ignoring all the RESTful goodness. So maybe there are some out there that can benefit from this chapter. Plus, having such thorough, theory-to-practice coverage allows the chapter to stand on its own as a solid reference to the whys and hows of RESTful Rails. It also has one of the better sections on RESTful routing that I have seen (routes being one of the more mysterious and sometimes frustrating pieces of Rails). Rails has gotten plenty of grief for its lack of official support for Internationalization and Localization, but in Chapter eight, Ediger lays out the options, such as gettext, Gibberish, and Globalize. He is most enthusiastic about this last library and it does appear to be quite powerful, including support for translating strings, translating model fields, localizing numbers and dates, and even recording what needs to be translated by saving them in the database. Creating multi-lingual websites is a hard problem in any web-development framework and most other frameworks have plenty of head start. However, Ruby and Rails certainly isn't without options and it will only get better. The next to last chapter of Advanced Rails runs through a number of alternatives to the standard components of the Rails framework. On the database end, it covers DataMapper, Ambition, and Og, giving this last one the most attention. For alternatives to ERB templates, Ediger talks about Markaby, Liquid and Haml, all in a very brisk fashion. He also talks about using traditional Rails components -- like ActiveRecord and ActionMailer -- outside of Rails applications. The chapter closes with a discussion of how to contribute to Rails (hint: submit a patch... don't just bitch!). The last chapter is called "Large Projects" and covers some useful information about working on a Rails project with a team, beginning with version control (though anyone who is writing code that covers more than a single file and *not* using version control is just plain insane). This starts with a quick overview of Subversion, however this feels like it is really a set up for making a case for "decentralized version control". Ediger does a good job of explaining these concepts, using Mercurial for his examples. This seems a bit unfortunate, since many people on the Rails core team have embraced Git and it is looking like Rails will eventually move its repository to Git. However, Mercurial has a reputation of being more user-friendly, so that may have influenced his decision. And it's useful information regardless. Chapter ten continues on to discuss avoiding migration numbering collisions, issue tracking, keeping Rails and required gems within a project, web servers, load balancers, production architecture and deployment tools like Capistrano. This is all covered in a fairly quick fashion so don't expect a lot of depth. That last sentiment came up often while reading this book. It often felt like Ediger was trying to get every possible Rails-related topic into the book that he could, but didn't want to come out with some 1000-page behemoth. Plenty of the topics mentioned don't have much more coverage than you could get with a quick "googling". However, there is something to be said for being exposed to a lot of tools, projects and concepts in one go, even if the exposure is sometimes superficial. I definitely found reading this book worthwhile and will keep it around to refer back to now and then. I don't know if I'd go so far as to label it required reading, but then again books on web frameworks rarely are.

- Reviewed by customer ID: A22F6N975B3T5G


  • International bookstores from Amazon:›› more online bookstores >  
 
    United States United States Canada Amazon Canada France France Germany Germany Japan Japan Spain Spanish books United Kingdom United Kingdom (UK)


Bookstores  |  Magazines  |  My Books  |  Book Bytes  |  Book Reviews  |  Rare Books  |  Help  |  Privacy  |  Top-Ten Book Lists  |  Web Directory  |  Tell-a-Friend  |  Bublos Rewards  |  Set Preferences  |  Contact Us  |  My Bookstores  |  Links to Bublos  |   Link-to-Me  |  About Bublos  |  


 Copyright © 1999 - 2008 Bublos Inc. All rights reserved.