PHPnews.io

Tree Coding vs. Bush Coding

Written by Tomáš Votruba / Original link on Feb. 11, 2021

How does circular reference look like? It is a point where you wait for your doctor; they wait for a state to accept the vaccine, and the state waits on people like your to come to the doctor. Who has the responsibility? Who can change the state?
In the past, we used singletons and static calls to get anything anywhere instantly. But soon, we got into the circular references trap. Now we moved to dependency injection and this problem does not exist anymore... or does it?

tomasvotruba

« A Week of Symfony #737 (8-14 February 2021) - Apache .htaccess disable access to site during Maintenance Mode / Deployment »