Open yracnet opened 7 months ago
Initially i thought that would be cool to keep both of mapping types available, but now i think that this will lack code readability and make it harder to understand if some methods would be defined in one file, and some in separated ones. So i think that this change you suggesting would be really nice
Hello friend,
This library has been very useful in my projects, but now that I've completed a very large project, I've encountered some issues regarding SOLID principles.
Regarding the Single Responsibility Principle: Defining GET and PUSH methods in the same file has become complex when using common methods between classes. Maintenance becomes more complicated as you need more controls in a file that can define all 5 verbs in one place (extreme case).
A colleague suggested enhancing a method mapping as follows:
The proposal for the new directory mapping:
Where the implementation of the file will change to:
As you can see, the concept of single responsibility appears, and the directory structure is more readable. This option allows declaring files in the same directory without affecting the initial project mapping.
Well, since the library is already used by you, I would like to know your opinion.
Thanks
cc: @leaftail1880 @oscar811 @PlayWolfYT @ablydevin