How to Perform Extract Service Refactoring When You Don't Have Tests - Qafoo - PHP

confguru

ExAdmin
Команда форума
When you are refactoring in a legacy codebase, the goal is often to reduce complexity or separate concerns from classes, methods and functions that do too much work themselves. Primary candidates for refactoring are often controller classes or use-case oriented service classes (such as a UserService). Extracting new service classes is one popular refactoring to separate concerns, but without tests it is dangerous because there are many ways to break your original code – we show you how this can still be done.

Читать дальше...
 
Сверху