聯繫我們

課程簡介

設計模式簡介

  • 什麼是設計模式
  • 模式的要素
  • 使用模式的優點與缺點

GoF 設計模式

創建型模式

  • 生成器 (Builder)
  • 工廠方法 (抽象工廠、工廠方法)
  • 原型 (Prototype)
  • 單例模式 (Singleton)

結構型模式

  • 委派者 (Delegator)
  • 介面 (Interface)
  • 外觀模式 (Facade)
  • 組合 (Composite)
  • 不可變對象 (Immutable)
  • 適配器 (Adapter)
  • 裝飾者模式 (Decorator)
  • 代理模式 (Proxy)

行為型模式

  • 命令模式 (Command)
  • 模板方法 (Template method)
  • 觀察者模式 (Observer)
  • 責任鏈模式 (包含攔截過濾器) (Chain of responsibility, Intercepting Filter)
  • 觀察者模式 (第二版) (Observer)
  • 策略模式 (Strategy)

企業應用程式架構模式 Web

  • MVC - 模型視圖控制器 (Model View Controller)
  • HMVC, MVP
  • 控制反轉 (Inversion of Control)
  • 依賴注入容器 (Dependency Injection Container)
  • 活動記錄模式 (Active Record)
  • 實體與倉儲的概念 (Entity and Repositories)
  • 系統分解 (Decomposition of the system)
  • Symfony 2 及 Zend Framework 2 的元件化範例

重構

  • 技術債 (Technical Debt)
  • 什麼是重構?
  • 支持重構的工具
    • phpmd (軟體指標) (Software metrics)
    • phpcpd
    • phpc
  • 通常需要重構的代碼
  • Jenkins 持續整合伺服器 (Jenkins Continuous Integration Server)

最低要求

具備基本或更高層級的 PHP 知識。

 21 小時

人數


每位參與者的報價

客戶評論 (5)

即將到來的課程

課程分類