Rails AntiPatterns: Best Practice Ruby on Rails Refactoring (Paperback)
暫譯: Rails 反模式:最佳實踐 Ruby on Rails 重構

Chad Pytel, Tammer Saleh

  • 出版商: Addison Wesley
  • 出版日期: 2010-11-19
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 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™ 反模式識別了這些普遍存在的 Rails 代碼和設計問題,解釋了為什麼它們是有害的以及為什麼會發生這些問題——並且清楚地展示了應該如何做。


本書分為簡潔的模組化章節——每個章節概述一個常見的反模式,並提供詳細的、類似食譜的代碼解決方案,這些解決方案在之前是難以或不可能找到的。領先的 Rails 開發者 Chad Pytel 和 Tammer Saleh 也提供了具體的指導,幫助重構現有的糟糕代碼或設計,以反映健全的物件導向原則和既定的 Rails 最佳實踐。在他們的幫助下,開發者、架構師和測試人員可以顯著改善新舊應用程式,避免未來的問題,並在整個組織中建立卓越的 Rails 編碼標準。

 

本書將幫助您理解、避免和解決以下問題:


  • 模型層代碼,從一般的物件導向編程違規到複雜的 SQL 和過度冗餘

  • 領域建模,包括模式和資料庫問題,如正規化和序列化

  • 視圖層工具和慣例

  • 控制器層代碼,包括 RESTful 代碼

  • 服務相關的 API,包括超時、例外、背景處理和回應代碼

  • 第三方代碼,包括插件和 gems

  • 測試,從測試套件到測試驅動開發流程

  • 擴展和部署

  • 資料庫問題,包括遷移和驗證

  • 現實世界中的系統設計以實現「優雅降級」

最後瀏覽商品 (20)