- Taschenbuch: 472 Seiten
- Verlag: O'Reilly; Auflage: 2nd ed. (15. Mai 2008)
- Sprache: Englisch
- ISBN-10: 0980455200
- ISBN-13: 978-0980455205
- Größe und/oder Gewicht: 17,8 x 2,4 x 22,9 cm
- Durchschnittliche Kundenbewertung: 1 Kundenrezension
- Amazon Bestseller-Rang: Nr. 995.275 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
Simply Rails 2 (Englisch) Taschenbuch – 15. Mai 2008
Es wird kein Kindle Gerät benötigt. Laden Sie eine der kostenlosen Kindle Apps herunter und beginnen Sie, Kindle-Bücher auf Ihrem Smartphone, Tablet und Computer zu lesen.
Geben Sie Ihre Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.
Want to learn all about Ruby on Rails 2.0, the web application framework that is inspiring developers around the world? The second edition of this practical, hands on book will: show you how to install Ruby on Rails on Windows, Mac, or Linux walk you, step by step, through the development of a Web 2.0 social news application, just like digg.com show you how to test, debug, benchmark, and deploy your Rails application Unlike other Rails books, this book doesn't assume that you are an experienced web developer, or that you've used Ruby before. An entire chapter is devoted to learning Ruby in a fun way, using the interactive Ruby console, so you can follow along at home. You'll be an accomplished Ruby programmer in no time! The example application that the book builds - a user-generated news web site - is built upon with each following chapter, and concepts such as sessions, cookies and basic AJAX usage are gradually introduced. Different aspects of Rails, such as user authentication, session cookies, and automated testing are explored with each feature that is added to the application.The book finishes with chapters on debugging, benchmarking and deployment to a live web server.By the end of the book, you'll have built a fully-featured Web 2.0 application and deployed it to the Web. And all code is up-to-date for Rails 2.0, so you can begin coding immediately with the latest version of Rails. What Will You Learn? This book will teach you how to: Program with confidence in the Ruby language. Build and deploy a complete Rails web application. Exploit the new features available in Rails 2. Use Rails' Ajax features to create slick interfaces. Reap the benefits of a best-practice MVC architecture. Work with databases easily using ActiveRecord. Implement RESTful development patterns and clean URLs. Create a user authentication system. Use object oriented concepts like inheritance and polymorphism. Build a comprehensive automated testing suite for your application. Add plugins to easily enhance your application's functionality. Use migrations to manage your database schema without data loss. Achieve maximum code reuse with filters and helper functions. Debug your application using the ruby_debug client.Analyze your application's performance using the Rails logging infrastructure. Benchmark your application to determine performance bottlenecks.And a whole lot more
Das Buch ist so aufgebaut, dass auch ein Anfänger gut damit zurcehtkommt, sofern er der englischen Sprache mächtig ist.
Alles in Allem: Ein empfehlenswertes Einsteigerbuch!
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
Patrick Lenz thoroughly covers the basics, RESTful routing, plugins, testing, etc., and also teaches several tips, tricks, and shortcuts of the trade...things that you may not easily deduce by reading the API. Practically every concept covered is matched with hands-on exercises while developing the book's application. The code is accurate and virtually errata-free.
There were only a couple of times that I had a question. I emailed Patrick, he responded literally within minutes, and was very helpful!
I have read several Rails books. Yet this is only the second book I've read that truly practices what it preaches about testing (and the other was Patrick's first version for Rails 1.2.x: Build Your Own Ruby on Rails Web Applications).
If you want to learn Rails, or already know Rails pre-2.0 and want to get up to speed on the new features and functionality of Rails 2.0+, or finally commit to proper testing, buy this book and take the time to work through and understand every exercise. I think you will be very glad you did.
If i had to comment on the books limitations, i would say that there are a lot of topics that are glossed over: CSS, regular expressions, security. e.g. page 175, "regexs are confusing". I would've said that regex's are important in rails: validations, generating URL slugs, etc, and there are a lot of good resources, and also verbose mode to make them more readable. The book is pretty well indexed but "regular expressions" doesn't appear in index. p 329, you're shown how to take user input and display back in view *without* sanitizing. This is absolutely something you do not want to show in a beginner rails book. There's no mention of XSS, SQL injection, other security issues in the book, as far as i can tell. Something analogous is on p 258, where plain text passwords are stored to database, along with text that says this is not a great practice. The text should say "If you try to put this code into production, you'll probably be fired".
When you finish reading this carefully, you still won't know enough to look up issues in teh Rails Way book, which is where a aspiring Rails developer needs to be to find work. The book doesn't provide the next steps, e.g. never mentions the most often used rails plugins, ImageMagick, acts as solr/ferret, restful_auth, etc, doesn't mention any browser issues or DBMS issues. (Chap 10 covers acts_as_taggable on steroids pretty thoroughly)
But for somebody who's never done web apps, this book would have a much high comprehension rate than most others (the Dummies rails book was good, but now outdated). So for target demographic, highly recommended.
I would also say that the book's ruby overview is kind of inadequate (rails books either do a handholding ruby in 25 pages chapter, or a detailed view of metaprogramming, gotchas and edge/corner cases). I prefer the latter (as in Ediger "advanced Rails" and Rappin "Professional Rails", both superb books)
It is a book to introduce you to Rails (and Ruby) without going into too much of the technical aspects.
This will in no way make you proficient at developing Rails applications, however, it introduces you to the fundamentals (especially testing) of rails with which you can go and watch screen screencasts, follow tutorials or read other books on rails with a basic understanding of the process.
I do NOT recommend this book to anyone trying to further along their Rails training (nor is it intended for that).
I DO recommend this for anyone who has picked up a rails book or watched a screencast and blindly started to regurgitate the code that is being taught without understanding what it is supposed to do. This book will explain it.
A (free) tutorial with which I recommend in conjunction with this book is:
This tutorial goes into gory detail over (nearly) every basic step that you need to know to start your Rails apps.
I have read nearly 10 books , plus countless screencasts and tutorials (mostly outdated due to Rails 2.0) on Rails and Simply Rails 2 is by far the most up-to-date and easy to read for a true beginner.
Let me refine that: you will be able to write one Ruby on Rails application by the end of it. The book walks you through creating a program that works like Digg. The book explains well everything that you need to do to write this one program, and introduces you to the basics of RoR architecture and how RoR works. I followed the instructions and understood everything that was going on.
However, once you have finished this book and written your Digg-like program, there is no guidance for where to go next. There isn't a chapter on "Further Resources" or "Where to go from here" or anything at all - you're just stuck with your little Digg-imitation. Not only that, but the book tends to introduce information in a rather haphazard order. From a pedagogy standpoint, the order in which information is presented makes a lot of sense. But it makes the book useless as a reference manual, or even as a model for how to do your own project.
It's fine as a first step and as an introduction to Ruby on Rails, especially since at the moment it's the only thing in print about Rails 2.x. But you will have to read other books before you can be a competent RoR programmer.
What I didn't expect to find and did!
- Introduction to Ruby
- Introduction to OOP
- Such a strong focus on testing (though not TDD, hence the 4 stars)
- A full chapter on debugging and performance analysis! (yes!!)
Here's why you need to buy this book:
- Consolidated Rails 2 information, one of the only of its kind that gets consistently good reviews.
- Pauses in the ride to introduce important concepts like REST, rather than just telling you to do something without giving you the background to understand why Rails 2 is focused on resources.
- Conversational writing style; easy to read and understand. Unlike the book on Flash I have, you won't have to read things twice or wonder what the heck you're supposed to be doing with an example.
Overall, I'm very happy with this purchase and have recommended it to anyone I know interested in RoR.