Not only that I don't agree, I recommend the opposite and for a good reason:🙂
Scenario
Imagine you have Project1 that uses Library1 (Spring4Delphi or something else).
1. If you give your project to someone else and you have the DCU paths (for Library1) in the DPROJ file, you FORCE that person to install the dependent library (Library1) in exactly same place as you have it on your computer. If the user already has Library1 installed in his computer, he will have to change project's options. So, it is clear that this way of using paths is not portable.
2. If you use the IDE "Library paths" then the the information about the Library1 is not included in your project. If the user receiving your project already has Library1 installed (and he was smart enough to use IDE "Library Paths") then Project1 will compile in his computer without any modifications.
This is the exact purpose of "Library paths": to keep the external libraries/dependencies separated from your projects!!!!
-
Delphi's help:
Spring4D is a package!
_
This is exactly what Delphi does: when you create a new project you don't have to specify where Vcl.Dialogs or System.SysUtils DCUs are for that project. The project can already find them because they are in the Library Paths.
Why reinventing the wheel?
_____________________________________________
This could also be bad advice if you have truly large projects. Why adding another few seconds to your already-2-minutes-long-compilation-time when you could use precompiled DCUs?
Again, this would be counter-Delphi-way: When you start a new project in Delphi, you don't compile the Vcl.Dialogs.pas or System.SysUtils.pas. Your project will find and use the precompiled DCUs.
_____________________________________________
I think paths are one of the least understood parts of Delphi, and therefore the most abused.
I upgraded several large projects to use precompiled libraries and I showed off really big amounts of times from the compilation time, with no downsides.
For most of my personal programs, the project (DProj) "Search Paths" are empty.
God gave use Library Paths for a good reason. Let's use them. 🙂