(DX) api/v3/examples - Rename *.php to *.ex.php #15310
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
The
api/v3/examples
folder contains a large number of files with the same names (Get.php
,Create.php
, etc).If you are in an IDE (or non-trivial text-editor) and wish to jump to a file by name (
<hotkey>
+Get.php
), then the uniqueness of the names becomes a factor in usability (DX).Before
Ex: If you want to jump to any file named
Get.php
, the list is very long. It includes ~10 code files and ~68 example files.Anecdotally, I never open any of those ~68 files; I do open the others occasionally, and there's no way to filter down the list further. It's awkward picking the one you want.
After
The example files use the extension
*.ex.php
, which means that you can easily trim-down the list of autocomplete results (Get
vsGet.php
vsGet.ex
).