> On Jul 1, 2024, at 5:07 PM, Rob Landers <rob@bottled.codes> wrote:
> 
> On Mon, Jul 1, 2024, at 18:22, Mike Schinkel wrote:
>> > On Jul 1, 2024, at 7:57 AM, Arvids Godjuks <arvids.godj...@gmail.com 
>> > <mailto:arvids.godj...@gmail.com>> wrote:
>> > 
>> > TL;DR: As a userland developer, in my opinion, this is just a downgrade 
>> > from what we have now. Enhance namespaces to have the ability to have 
>> > internal/private classes, interfaces, enums and constants. That's about it.
>> 
>> Please note my comments that follow do not mean I am in support of this 
>> package proposal as presented. 
>> 
>> > Autoloading is one of the best killer features of PHP - love it or hate it 
>> > - it's your personal preference.
>> 
>> Two really solid reasons to hate autoloading as implemented in PHP:
>> 
>> 1. Autoloading runs userland code. This means it has the potential conflict 
>> between different packages with different autoloaders, it means there can be 
>> buggy autoloaders, and it means that when using XDEBUG every time a new 
>> symbol is found when the developer is single-step debugging the developer 
>> will be dropped into the autoloader and then best case they then immediately 
>> trace out. All of these aspects a major PITA and time waster and make 
>> debugging more exhausting than it needs to be.
> 
> FWIW, (in Intellij at least), you can set it to skip those files.

I just went and looked again, and after having requested the feature in 
PhpStorm over a decade ago, it appears they finally have added it. I had given 
up that they ever would, and must have missed it when they added it. Thanks for 
prodding me to look for it.

Of course that doesn't help if the source of the bug is in the userland 
autoloader code, but is an improvement much of the time otherwise.

-Mike

Reply via email to