Learning PHP Design Patterns (Paperback)

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 程式設計技巧,透過學習如何在程式碼中應用設計模式。本書透過簡單的範例展示了如何應用多種物件導向設計模式,並在完整的應用程式中展示了其中許多模式的運作方式。

學習這些可重複使用的設計模式將幫助您解決複雜的問題、組織物件導向程式碼,並透過只更改小部分程式碼來修改大型專案。透過《學習 PHP 設計模式》,您將學會採用更複雜的程式設計風格,並大幅減少開發時間。

本書內容包括:
- 學習設計模式概念,包括如何選擇適用於特定問題的模式
- 瞭解物件導向程式設計概念,如組合、封裝、多型和繼承
- 應用建立型設計模式,使用工廠方法而非直接實例化來動態建立頁面
- 在不更改原始程式碼的情況下對現有物件或結構進行修改,使用結構型設計模式
- 使用行為型設計模式幫助物件協同執行任務
- 使用行為型設計模式(如代理和責任鏈)與 MySQL 進行互動
- 探索使用 PHP 內建的設計模式介面的方法