On Thu, Feb 8, 2024, 12:12 Alexander Pravdin <alex.prav...@interi.co> wrote:
> On Thu, Feb 8, 2024 at 6:25 PM Григорий Senior PHP / Разработчик Web > <6562...@gmail.com> wrote: > > > > PHPStan is out the case. > > > > May I know why is it out? > > I'm actively using it in my projects and it helps me a lot to not > relax and write safe code. It also helps a lot in cleaning up legacy > code. Sometimes I find places in the legacy code where the logic is > too hard to understand in a reasonable amount of time, but they're > rare. These places can be enveloped with additional logging with no > problem. > > I'm referring to your initial use case about collecting errors and I'm > suggesting a good tool to solve it. You may start from lower assertion > levels in PHPStan and gradually increase the level to be not ruined by > tons of errors at a time. Of course, I don't know your situation. But > what I do in such cases - is explain to the business the problem and > what steps are required to improve the situation. So the business is > aware of it, the business should not have false impressions about the > code and false expectations from me. Just prefer to be open and tell > the truth. Not prefer to be a yes-man and promise speedy magic > solutions. I'm a professional developer and if I'm asked to do some > crappy coding regularly, I would prefer to leave such a job. My > selling point is to produce high-quality well-architected code. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php If I understood references correctly, it's actually simple - they work at an outsourcing company of some sorts that has a project conveyor - 13 projects in paralel was mentioned. And clients refuse to pay to do things right or do upkeep/maintenance on their assets and so on. That's why it's easier to ask for a feature here than do the work themselves on the applications they are supporting. Nobody cares except the developers who have to deal with it and are being told to fix it somehow or get fired.