Cargando…

Modernizing legacy applications in PHP : get your code under control in a series of small, specific steps /

Learn to extract and replace legacy artifacts,Improve your application from the ground up while keeping your codebase fully operational,Improve the quality of your legacy applications.Who This Book Is ForPHP developers from all skill levels will be able to get value from this book and will be able t...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Jones, Paul M. (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt, 2016.
Temas:
Acceso en línea:Texto completo
Descripción
Sumario:Learn to extract and replace legacy artifacts,Improve your application from the ground up while keeping your codebase fully operational,Improve the quality of your legacy applications.Who This Book Is ForPHP developers from all skill levels will be able to get value from this book and will be able to transform their spaghetti code applications to clean, modular applications. If you are in the midst of a legacy refactor or you find yourself in a state of despair caused by the code you have inherited, this is the book for you. All you need is to have PHP 5.0 installed, and you're all set to change the way you maintain and deploy your code!What You Will LearnReplace global and new with dependency injectionExtract SQL statements to gatewaysConvert action logic to controllersRemove repeated logic in page scriptsCreate maintainable PHP code from crufty legacy PHPIn DetailIs your legacy PHP application composed of page scripts placed directly in the document root of the web server? Do your page scripts, along with any other classes and functions, combine the concerns of model, view, and controller into the same scope? Is the majority of the logical flow incorporated as include files and global functions rather than class methods?If so, you already know that the wide use of global variables means that making a change in one place leads to unexpected consequences somewhere else. These and other factors make it overly difficult and expensive for you to add features and fix bugs. Working with this legacy application feels like dragging your feet through mud.But it doesn't have to be that way! This book will show you how to modernize your application by extracting and replacing its legacy artifacts. We will use a step-by-step approach, moving slowly and methodically, to improve your application from the ground up. Moreover, we will keep your application running the whole time. Each completed step in the process will keep your codebase fully operational with higher quality. As we apply these incremental refactorings in order, each one building on the last, we will steadily transform your legacy PHP application from a spaghetti mess to an organized, modern, testable application, free of globals and mixed concerns.When we are done, you will be able to breeze through your code like the wind. Your code will be autoloaded, dependency-injected, unit-tested, layer-separated, and front-controlled.
Notas:Includes index.
Descripción Física:1 online resource (ix, 264 pages) : illustrations.
ISBN:1787127788
9781787127784