Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #53010, comment 16


Ignore:
Timestamp:
06/18/2023 10:30:19 AM (8 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53010, comment 16

    v1 v2  
    11May be missing something but it seems the proposed "File paths" suggest that each class should be split in up to 50 separate files, one per method. Is that correct?
    22
    3 If yes, could you please explain what are the benefits of having several thousands of files instead of 100-200? Seems this would trigger a lot of needless disk i/o and slow down running of the tests as most of the files will have to be loaded every time the tests are run.
     3If yes, could you please explain what are the benefits of having such "file and directory layout" with several thousands of files instead of 100-200? Seems this would trigger a lot of needless disk i/o and slow down running of the tests as most of the files will have to be loaded every time the tests are run.
    44
    55Also seems this is not recommended (compatible?) by [https://www.php-fig.org/psr/psr-4/ PSR4]. It states that: