Carrinho de Compras

Seu carrinho está vazio no momento.

Carrinho de Compras

Seu carrinho está vazio no momento.

Modernizing Legacy Applications in PHP

Paul Jones (Autor)

Packt Publishing (Editora)

R$ 241,07
SKU: 9781787124707

Get your code under control in a series of small, specific steps

Key Features:

- 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.

Book Description:

Have you noticed that your legacy PHP application is composed of page scripts placed directly in the document root of the web server? Or, 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? Working with such a legacy application feels like dragging your feet through mud, doesn't it?This book will show you how to modernize your application in terms of practice and technique, rather than in terms of using tools such as frameworks and libraries, 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. We'll show you how dependency injection can replace both the new and global dependencies. We'll also show you how to change the presentation logic to view files and the action logic to a controller. Moreover, we'll keep your application running the whole time. Each completed step in the process will keep your codebase fully operational with higher quality. 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. Most of the very limited code we will add to your application is specific to this book. We will be improving ourselves as programmers, as well as improving the quality of our legacy application.

What You Will Learn:

- Replace global and

Sobre o Livro

Aplicações PHP legadas frequentemente colocam scripts de página no document root e misturam lógica de modelo, visão e controle no mesmo escopo, usando includes e funções globais como fluxo principal. Essa organização complica manutenção e refatoração ao longo do tempo.

Para modernizar o código, o autor mostra como extrair e substituir artefatos legados por práticas como injeção de dependência, autoloading e separação entre controllers e views. As técnicas visam manter a aplicação operacional enquanto componentes são gradualmente substituídos e cobertos por testes unitários.

O método segue passos pequenos e específicos, aplicados diretamente ao código existente para reduzir risco e interrupção. Cada etapa deixa a base de código mais modular, testável e controlada por um front controller.

Características

Categoria Computação
Subcategoria Programação
Autores Paul Jones
Sobre o Autor Paul Jones é autor e desenvolvedor com foco em PHP e modernização de aplicações legadas.
Idioma Inglês
Quantidade de Páginas 286
Acabamento Brochura
Editora Packt Publishing
ISBN 9781787124707
Tamanho 19.1x23.5
Translation missing: pt-BR.general.search.loading