Rails AntiPatterns: Best Practice Ruby on Rails Refactoring (Paperback)

Chad Pytel, Tammer Saleh

  • 出版商: Addison Wesley
  • 出版日期: 2010-11-19
  • 售價: $1,800
  • 貴賓價: 9.5$1,710
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 0321604814
  • ISBN-13: 9780321604811
  • 相關分類: RubyDesign Pattern Refactoring
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

The Complete Guide to Avoiding and Fixing Common Rails 3 Code and Design Problems

As developers worldwide have adopted the powerful Ruby on Rails web framework, many have fallen victim to common mistakes that reduce code quality, performance, reliability, stability, scalability, and maintainability. Rails™ AntiPatterns identifies these widespread Rails code and design problems, explains why they’re bad and why they happen—and shows exactly what to do instead.


The book is organized into concise, modular chapters—each outlines a single common AntiPattern and offers detailed, cookbook-style code solutions that were previously difficult or impossible to find. Leading Rails developers Chad Pytel and Tammer Saleh also offer specific guidance for refactoring existing bad code or design to reflect sound object-oriented principles and established Rails best practices. With their help, developers, architects, and testers can dramatically improve new and existing applications, avoid future problems, and establish superior Rails coding standards throughout their organizations.

 

This book will help you understand, avoid, and solve problems with

  •  Model layer code, from general object-oriented programming violations to complex SQL and excessive redundancy
  • Domain modeling, including schema and database issues such as normalization and serialization
  • View layer tools and conventions
  • Controller-layer code, including RESTful code
  • Service-related APIs, including timeouts, exceptions, backgrounding, and response codes
  • Third-party code, including plug-ins and gems
  • Testing, from test suites to test-driven development processes
  • Scaling and deployment
  • Database issues, including migrations and validations
  • System design for “graceful degradation” in the real world

商品描述(中文翻譯)

《避免和修復常見的 Rails 3 代碼和設計問題完全指南》

隨著全球開發人員紛紛採用強大的 Ruby on Rails 網頁框架,許多人都陷入了常見錯誤的陷阱,這些錯誤降低了代碼質量、性能、可靠性、穩定性、可擴展性和可維護性。《Rails™ AntiPatterns》確定了這些廣泛存在的 Rails 代碼和設計問題,解釋了它們為什麼是不好的以及為什麼會發生,並且明確指出應該做什麼。

本書分為簡潔的模塊化章節,每個章節概述一個常見的反模式並提供詳細的烹飪書式代碼解決方案,這些解決方案以前很難或不可能找到。領先的 Rails 開發人員 Chad Pytel 和 Tammer Saleh 還提供了具體的指導,以便重構現有的糟糕代碼或設計,以反映良好的面向對象原則和已建立的 Rails 最佳實踐。在他們的幫助下,開發人員、架構師和測試人員可以顯著改善新的和現有的應用程序,避免未來問題,並在整個組織中建立優越的 Rails 編碼標準。

本書將幫助您理解、避免和解決以下問題:
- 模型層代碼,從一般面向對象編程違規到複雜的 SQL 和過度冗余
- 領域建模,包括模式和數據庫問題,如規範化和序列化
- 視圖層工具和慣例
- 控制器層代碼,包括 RESTful 代碼
- 服務相關的 API,包括超時、異常、後台處理和響應代碼
- 第三方代碼,包括插件和寶石
- 測試,從測試套件到測試驅動開發流程
- 擴展和部署
- 數據庫問題,包括遷移和驗證
- 在現實世界中實現“優雅降級”的系統設計