E
E
evilmolen2020-08-02 19:43:57
Refactoring
evilmolen, 2020-08-02 19:43:57

How to migrate to a new architecture while isolating old code?

There is a project on Laravel with a "smelling" code base and a crooked implementation of a modular architecture, the same crooked implementation of repositories and a terrible hodgepodge in models.
We urgently need to save it, while rolling into a normal architecture.

Actually, what are the methods of architecture refactoring/migration?
Are there any books on the subject?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Developer, 2020-08-02
@samodum

Read Refactoring by Martin Fowler

T
Technique102, 2020-08-02
@Technique102

https://refactoring.guru/en/refactoring/techniques
Maybe something will help here.

D
Daria Motorina, 2020-08-02
@glaphire

If the infrastructure allows, then you can create a new project, write the old functionality in it in a normal way and separate the urls at the server level that will look at the new and old code base. Well, the standard way is to cover everything with tests and refactor a little...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question