by lemper · 3y ago · 0 comments
The benefit and downside of the PSR standards is they are optional. Sadly some think they know better and opt to roll their own convoluted 'standards' that just end up creating hell for the next person to come along and have to maintain their mess.
No thank you.
And honestly if you're a PHP dev intentionally avoiding the widely adopted standards and know someone else is going to have to maintain your code then shame on you.
if you want to try modern php then start fresh or put in the work updating the legacy. its no different than being given a jquery project from 7-8 years ago and expecting a modern experience
Exactly my thoughts. In the end it gets up to the developers are to blame by not taking time to upgrade their projects and end up with a legacy project.
PHP does the deprecation and backward compatibility better than many languages (hello Python!) but still some effort is needed as a developer to ensure your codebase is updated. I'm not even talking about the architecture here, which of course is harder to change, but language features.
And there is Rector to automate most of that!