I was analyzing some bookstores and the doubt arose. It is common for them to contain a "src" directory, I guess it comes from "source", but I'm not sure if that is the case and if it is because of the abbreviated form... It is not always used either and I don't know if it is common to find it in some particular architectural pattern. I guess he'll have his story, anyone shed some light on it?
src
is always understood as source .In the set of folders of a project the directory
src
would store the source code of said project.According to The American Heritage® Dictionary of the English Language , the source code, that is, the code that is stored in
src
a project directory is:The Collins English Dictionary definition is much the same:
And according to Thesaurus (WordNet 3.0) :
In short, it is the code that the programmer writes so that it is later compiled.
As for its origin, I found nothing about it. However, the origin may be in Linux, which has a standard called File System Hierarchy , well documented and maintained by the Linux Foundation.
Within that document, we see that Linux regulates the use of
src
among many other names that would be part of a naming convention that would have nothing to envy to any other.For example in section 6.1.9 :
This painstaking treatment of Linux may have spilled over into other languages and also into project structures in almost all languages today.
src
It is also used, for example, in HTML, to indicate the source (URL address) of an image.