Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tomas Votruba Blog:
Removing Static - There and Back Again
Apr 02, 2019 @ 14:37:27

The more companies I meet, the more I see static and new everywhere. Not like new Product, but rather new ProductRepository(new Database()). Not just Laravel, but across all PHP frameworks. I wish frameworks could prevent antipatterns, but they don't, do they?

Instead of "refactor all the things" step by step, class by class, I'd like share my thoughts when exploring full automated path. I look for feedback to improve this process.

tagged:

Link: https://www.tomasvotruba.cz/blog/2019/04/01/removing-static-there-and-back-again/


Trending Topics: