TOP
從紙書中看見香港,指定港書滿888再折100
Refactoring Legacy PHP: A Practical Guide to Modernizing Old Codebases: A Step-By-Step Guide To Refactoring, Testing, & Upgrading Legacy PHP Applicati
滿額折

Refactoring Legacy PHP: A Practical Guide to Modernizing Old Codebases: A Step-By-Step Guide To Refactoring, Testing, & Upgrading Legacy PHP Applicati

商品資訊

定價
:NT$ 672 元
無庫存,下單後進貨(到貨天數約30-45天)
下單可得紅利積點 :20 點
商品簡介

商品簡介

What You Will Learn in This Book

  • Accurately assess and diagnose legacy PHP codebases: Understand what constitutes "legacy," identify common pitfalls like unmaintained code and its business risks, and set realistic modernization goals.
  • Prepare your development environment for safe refactoring: Master essential practices like version control with Git, establish stable local environments, and employ code archaeology techniques to understand unfamiliar systems.
  • Identify and address various code smells in PHP: Recognize specific anti-patterns such as global state abuse, spaghetti code, duplicated logic, and mixed HTML/PHP, and utilize static analysis tools like PHPStan, Psalm, and PHPMD for automated detection.
  • Implement a robust testing strategy for untestable code: Grasp the non-negotiable role of testing in legacy transformation, overcome challenges in testing tightly coupled code, introduce characterization tests, and set up testing frameworks like PHPUnit.
  • Apply core refactoring techniques incrementally and safely: Execute fundamental refactorings like Extract Method, Extract Class, and Rename, and learn to transition procedural code towards object-oriented structures while safely restructuring data.
  • Write effective tests for existing and refactored PHP code: Gain proficiency in PHPUnit, employ dependency injection and interfaces to make code testable, and utilize mocking and stubbing for isolated unit and integration testing.
  • Leverage design patterns to improve code robustness and flexibility: Understand how to apply creational, structural, and behavioral patterns (e.g., Factory, Adapter, Strategy) to solve common design problems and refactor away anti-patterns.
  • Navigate and execute PHP version upgrades strategically: Comprehend the benefits of modern PHP, understand backward compatibility breaks, and utilize tools like Rector and PHP Compatibility Checker for smoother transitions.
  • Integrate modern PHP features into legacy projects: Implement namespaces and Composer for autoloading, introduce strict types and scalar type declarations, and leverage modern OOP enhancements and improved error handling.
  • Architecturally refactor monolithic PHP applications: Decouple concerns using patterns like MVC, work with legacy databases, introduce API layers, and apply the Strangler Fig pattern for incremental system replacement.
  • Strategically adopt modern PHP frameworks: Evaluate the pros and cons of frameworks like Symfony or Laravel, understand when and how to incrementally integrate them into existing systems.
  • Tackle advanced legacy challenges effectively: Systematically eradicate global state, introduce Composer to projects lacking dependency management, address common security vulnerabilities, and optimize performance.
  • Cultivate a culture of continuous code quality and improvement: Integrate static analysis into CI/CD pipelines, monitor technical debt, balance pragmatism with perfectionism, and plan for the ongoing evolution of your codebase.

購物須知

外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。

無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。

為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。

若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。

定價:100 672
無庫存,下單後進貨
(到貨天數約30-45天)

暢銷榜

客服中心

收藏

會員專區