買這商品的人也買了...
-
$2,800$2,660 -
$650$618 -
$520$411 -
$1,430$1,359 -
$2,024Learning Domain-Driven Design: Aligning Software Architecture and Business Strategy (Paperback)
商品描述
- Describes and demonstrates PHP's built-in object-oriented features
- Breaks down the principles of object-oriented design, explaining key design patterns using practical examples.
- Discusses the tools and practices necessary for developing, testing and deploying exemplary applications.
What you’ll learn
- Learn to work with object fundamentals: writing classes and methods, instantiating objects, creating powerful class hierarchies using inheritance
- Master advanced object-oriented features, including static methods and properties, managing error conditions with exceptions, and creating abstract classes and interfaces.
- Understand and use design principles to deploy objects and classes effectively in your projects.
- Learn about design patterns, their purpose, structure and the underlying principles that govern them.
- Discover a set of powerful patterns that you can deploy in your own projects
- Learn about the tools and practices that can guarantee a successful project including unit testing; version control, build, installation and package management; and continuous integration.
Who this book is for
Table of Contents
- PHP: Design and Management
- PHP and Objects
- Object Basics
- Advanced Features
- Object Tools
- Objects and Design
- What Are Design Patterns? Why Use Them?
- Some Pattern Principles
- Generating Objects
- Patterns for Flexible Object Programming
- Performing and Representing Tasks
- Enterprise Patterns
- Database Patterns
- Good (and Bad) Practice
- An Introduction to PEAR and Pyrus
- Generating Documentation with phpDocumentor
- Version Control
- Testing with PHPUnit
- Automated Build with Phing
- Continuous Integration
- Objects, Patterns, and Practice
- App A: Bibliography
- App B: A Simple Parser
商品描述(中文翻譯)
PHP 物件模式與實務(第四版)已全面修訂與更新。本書首先介紹 PHP 的物件導向特性,涵蓋類別宣告、繼承、反射等關鍵主題,這些都是 PHP 對物件支援的基礎。此外,書中也介紹了一些設計原則。
本版引入了與物件相關的新特性,例如 traits、反射擴展新增、可呼叫型別提示、例外處理的改進,以及許多較小的語言增強。
接下來的部分專注於設計模式,這些模式描述了常見問題及其解決方案。該部分闡述了使模式強大的設計原則,涵蓋了許多經典設計模式,並包括企業模式和資料庫模式的章節。
本書的最後一部分涵蓋了幫助將優秀代碼轉化為成功專案的工具和實務。該部分展示了如何使用 git 管理多位開發者和版本,如何使用 Phing 和 PEAR 進行構建和安裝。它還探討了自動化測試和構建的策略。
除了討論構建、測試和持續整合的最新發展外,這部分還通過專注於 Git,跟上版本控制的最佳實踐,因為 Git 正日益成為開發者的首選系統。
綜合這三個要素:物件基礎、設計原則和最佳實踐,將幫助讀者開發出優雅且穩固的系統。
PHP 物件與模式:
- 描述並演示 PHP 的內建物件導向特性
- 分析物件導向設計的原則,使用實際範例解釋關鍵設計模式
- 討論開發、測試和部署範例應用所需的工具和實務
你將學到:
- 學會處理物件基礎:撰寫類別和方法、實例化物件、使用繼承創建強大的類別層次結構
- 精通進階物件導向特性,包括靜態方法和屬性、使用例外管理錯誤條件,以及創建抽象類別和介面
- 理解並使用設計原則,將物件和類別有效地部署到你的專案中
- 了解設計模式、其目的、結構及其背後的原則
- 發現一組可以在自己專案中部署的強大模式
- 學習保證專案成功的工具和實務,包括單元測試、版本控制、構建、安裝和套件管理,以及持續整合
本書適合對 PHP 具有基本知識的任何人,想在其專案中使用物件導向特性的人。
那些已經了解介面與抽象類別的人,可能仍然會發現將這些特性應用於專案中有困難。他們將從本書對設計的強調中受益,學會如何選擇和組合系統的參與者;如何閱讀設計模式以及如何在代碼中使用它們。
最後,本書適合希望了解能使專案安全、優雅和穩定的實務和工具(版本控制、測試、持續整合等)的 PHP 程式設計師。
目錄:
1. PHP:設計與管理
2. PHP 與物件
3. 物件基礎
4. 進階特性
5. 物件工具
6. 物件與設計
7. 什麼是設計模式?為什麼使用它們?
8. 一些模式原則
9. 生成物件
10. 靈活物件編程的模式
11. 執行與表示任務
12. 企業模式
13. 資料庫模式
14. 良好(與不良)實踐
15. PEAR 和 Pyrus 簡介
16. 使用 phpDocumentor 生成文檔
17. 版本控制
18. 使用 PHPUnit 測試
19. 使用 Phing 進行自動化構建
20. 持續整合
21. 物件、模式與實務
22. 附錄 A:參考書目
23. 附錄 B:簡單解析器