Learning PHP Design Patterns (Paperback)
暫譯: 學習 PHP 設計模式 (平裝本)

William Sanders

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

相關主題

商品描述

Build server-side applications more efficiently—and improve your PHP programming skills in the process—by learning how to use design patterns in your code. This book shows you how to apply several object-oriented patterns through simple examples, and demonstrates many of them in full-fledged working applications.

Learn how these reusable patterns help you solve complex problems, organize object-oriented code, and revise a big project by only changing small parts. With Learning PHP Design Patterns, you’ll learn how to adopt a more sophisticated programming style and dramatically reduce development time.

  • Learn design pattern concepts, including how to select patterns to handle specific problems
  • Get an overview of object-oriented programming concepts such as composition, encapsulation, polymorphism, and inheritance
  • Apply creational design patterns to create pages dynamically, using a factory method instead of direct instantiation
  • Make changes to existing objects or structure without having to change the original code, using structural design patterns
  • Use behavioral patterns to help objects work together to perform tasks
  • Interact with MySQL, using behavioral patterns such as Proxy and Chain of Responsibility
  • Explore ways to use PHP’s built-in design pattern interfaces

商品描述(中文翻譯)

建立伺服器端應用程式的效率,並在此過程中提升您的 PHP 程式設計技能,學習如何在您的程式碼中使用設計模式。本書展示了如何通過簡單的範例應用幾種物件導向模式,並在完整的工作應用程式中演示了許多這些模式。

了解這些可重用模式如何幫助您解決複雜問題、組織物件導向程式碼,並通過僅更改小部分來修訂大型專案。透過《Learning PHP Design Patterns》,您將學會採用更精緻的程式設計風格,並顯著減少開發時間。

- 學習設計模式概念,包括如何選擇模式來處理特定問題
- 獲得物件導向程式設計概念的概述,例如組合、封裝、多型和繼承
- 應用創建型設計模式動態創建頁面,使用工廠方法而非直接實例化
- 使用結構型設計模式對現有物件或結構進行更改,而無需更改原始程式碼
- 使用行為模式幫助物件協同工作以執行任務
- 與 MySQL 互動,使用行為模式如代理模式(Proxy)和責任鏈模式(Chain of Responsibility)
- 探索使用 PHP 內建設計模式介面的方式