Layered Design for Ruby on Rails Applications: Discover practical design patterns for maintainable web applications (Paperback)
暫譯: Ruby on Rails 應用程式的分層設計:探索可維護的網頁應用程式實用設計模式 (平裝本)
Dementyev, Vladimir
- 出版商: Packt Publishing
- 出版日期: 2023-08-30
- 售價: $1,950
- 貴賓價: 9.5 折 $1,853
- 語言: 英文
- 頁數: 298
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1801813787
- ISBN-13: 9781801813785
-
相關分類:
Ruby、Design Pattern
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$1,360$1,292 -
$3,230$3,069 -
$1,220$1,159 -
$299Practical REST on Rails 2 Projects (Paperback)
-
$990Programming Ruby: The Pragmatic Programmers' Guide, 3/e (Paperback)
-
$850$808 -
$199Crafting Rails Applications: Expert Practices for Everyday Rails Development (Paperback)
-
$990$941 -
$1,485$1,411 -
$356SaaS軟件工程(雲計算時代的敏捷開發)
-
$1,140$1,083 -
$332Web應變之道
-
$1,575$1,544 -
$299$254 -
$1,140$1,083 -
$900$855 -
$301親愛的界面 讓用戶樂於使用 愛不釋手 第2版
-
$580$458 -
$780$616 -
$352軟件項目估算 Software Project Estimation
-
$401松本行弘 編程語言的設計與實現
-
$347Redux 實戰
-
$1,200$948 -
$650$507 -
$720$562
商品描述
Transition from the traditional Rails model-view-controller trio to an abstraction model and let your application codebase evolve with synchronized components, boosting flexibility and maintainability
Purchase of the print or Kindle book includes a free PDF eBook
Key Features
- Understand Rails' architectural patterns along with its advantages and disadvantages
- Organize business logic in Rails apps when the default approach is insufficient
- Introduce new abstractions to address design problems
Book Description
Ruby on Rails is an open-source framework for building web applications from scratch while focusing on productivity, leveraging the power of the convention-over-configuration principle, and the well-defined model-view-controller pattern, assisting the developers in building useful features. However, this initial simplicity often leads to uncontrollable complexity turning the well-structured codebase into a hardly maintainable mess. This book aims to help you keep the code maintainable while working on a Rails application.
You'll start by exploring the framework capabilities and principles, allowing you to reap the full potential of Rails. Then, you'll tackle many common design problems by discovering useful patterns and abstraction layers. By implementing abstraction and dividing the application into manageable modules, you'll be able to concentrate on specific parts of the app development without getting overwhelmed by the entire codebase. This strategy also encourages code reuse, simplifying the process of adding new features and enhancing the application's capabilities. Additionally, you'll explore further steps in scaling Rails codebase, such as service extractions.
By the end of this book, you'll be a code design specialist with a deep understanding of the Rails framework principles.
What you will learn
- Discover Rails' core components and its request/response cycle
- Understand Rails' convention-over-configuration principle and its impact on development
- Explore patterns for flexibility, extensibility, and testability in Rails
- Identify and address Rails' anti-patterns for cleaner code
- Implement design patterns for handling bloated models and messy views
- Expand from mailers to multi-channel notification deliveries
- Explore different authorization models and layers
- Use a class-based approach to configuration in Rails
Who this book is for
This book is for Rails application developers facing challenges in managing the growing complexity of their projects. It offers practical strategies for maintaining code readability and manageability, providing valuable guidance for developers at all levels. Whether you've recently launched your first Rails minimum viable product or are struggling to progress with a sizable monolithic application, this book is here to help. A deep understanding of core Rails principles is a must. Some experience in building web applications using the Rails framework will enhance your comprehension and application of the concepts presented in the book.
商品描述(中文翻譯)
從傳統的 Rails 模型-視圖-控制器三元組過渡到抽象模型,讓您的應用程式代碼庫隨著同步組件演變,提升靈活性和可維護性
購買印刷版或 Kindle 書籍包括免費的 PDF 電子書
主要特點
- 了解 Rails 的架構模式及其優缺點
- 在 Rails 應用程式中組織業務邏輯,當預設方法不足時
- 引入新的抽象以解決設計問題
書籍描述
Ruby on Rails 是一個開源框架,用於從零開始構建網頁應用程式,專注於生產力,利用約定優於配置原則的力量,以及明確定義的模型-視圖-控制器模式,幫助開發人員構建有用的功能。然而,這種初始的簡單性往往會導致無法控制的複雜性,將結構良好的代碼庫變成難以維護的混亂。這本書旨在幫助您在開發 Rails 應用程式時保持代碼的可維護性。
您將首先探索框架的能力和原則,讓您充分發揮 Rails 的潛力。接著,您將通過發現有用的模式和抽象層來解決許多常見的設計問題。通過實施抽象並將應用程式劃分為可管理的模組,您將能夠專注於應用開發的特定部分,而不會被整個代碼庫所壓倒。這種策略還鼓勵代碼重用,簡化添加新功能和增強應用程式能力的過程。此外,您還將探索擴展 Rails 代碼庫的進一步步驟,例如服務提取。
在本書結束時,您將成為一位代碼設計專家,深入理解 Rails 框架的原則。
您將學到什麼
- 發現 Rails 的核心組件及其請求/響應循環
- 理解 Rails 的約定優於配置原則及其對開發的影響
- 探索在 Rails 中實現靈活性、可擴展性和可測試性的模式
- 識別並解決 Rails 的反模式以獲得更乾淨的代碼
- 實施設計模式以處理臃腫的模型和混亂的視圖
- 從郵件發送器擴展到多通道通知傳遞
- 探索不同的授權模型和層次
- 在 Rails 中使用基於類的配置方法
本書適合誰
本書適合面臨管理其項目日益增長的複雜性挑戰的 Rails 應用程式開發人員。它提供了維持代碼可讀性和可管理性的實用策略,為各級開發人員提供寶貴的指導。無論您是最近推出了第一個 Rails 最小可行產品,還是正在努力推進一個龐大的單體應用程式,本書都能幫助您。對核心 Rails 原則的深入理解是必須的。擁有使用 Rails 框架構建網頁應用程式的一些經驗將增強您對書中概念的理解和應用。
目錄大綱
- Rails as a Web Application Framework
- Active Models and Records
- More Adapters, Less Implementations
- Rails Anti-Patterns?
- When Rails Abstractions Are Not Enough
- Data Layer Abstractions
- Handling User Input outside of Models
- Pulling Out the Representation Layer
- Authorization Models and Layers
- Crafting the Notifications Layer
- Better Abstractions for HTML Views
- Configuration as a First-Class Application Citizen
- Cross-Layers and Off-Layers
目錄大綱(中文翻譯)
- Rails as a Web Application Framework
- Active Models and Records
- More Adapters, Less Implementations
- Rails Anti-Patterns?
- When Rails Abstractions Are Not Enough
- Data Layer Abstractions
- Handling User Input outside of Models
- Pulling Out the Representation Layer
- Authorization Models and Layers
- Crafting the Notifications Layer
- Better Abstractions for HTML Views
- Configuration as a First-Class Application Citizen
- Cross-Layers and Off-Layers