In software development, one often has multiple individual files that are referenced or "included" by others. What is the noun for each one of those individual files, and what would you call the collection of them?
For simplicity's sake
The program's source is a collection of source files
This is suitable for all programming languages in all use-cases, whereas
includes are generally applicable to only a single language or language-group, or to specify the purpose of files, without enough data to be able to specify which is intended.
Source files are not dependencies unless the program specifically depends upon that source code to function, and are not includes unless they are actually included in the program; in which case it wouldn't necessarily cover manifests, remote loaded source (like jQuery for example) or resource assets.
This may not be in a dictionary anywhere yet, but programmers call them 'includes'.
I have written an include for the application controller.
The main file has twenty includes.
If you are looking for a collective noun, it probably depends on context, but a 'set' or a 'collection' would be words that would usually make sense.
A set of ten includes are required for the application to work.
What is the noun for each one of those individual files, and what would you call the collection of them?
The name of "files that play the role of being included elsewhere" might be called dependencies (single or collective) (or header files, if your programming language uses those). Yes, dependencies can be other things as well, but usually you don't need to distinguish. If so, you can say "source code dependencies."
The name of the declaration that declares the dependency might best be called an 'include', but to use it for the files thereby included bears the potential for confusion.
Source Code is a mass/collective noun. The file inclusions are objects or any number of names depending on the terminology for the programming language you are using.
For example C Source Code can include applets and classes.
This is not really an English language question as you will most likely describe what you are referring to when talking with another programmer.
Library is one option. Remember .lib files?
The library consists of individual modules.
In computer science, a library is a collection of implementations of behavior, written in terms of a language, that has a well-defined interface by which the behavior is invoked.[clarification needed] In addition, the behavior is provided for reuse by multiple independent programs. A program invokes the library-provided behavior via a mechanism of the language. For example, in a simple imperative language such as C, the behavior in a library is invoked by using C's normal function-call. What distinguishes the call as being to a library, versus being to another function in the same program, is the way that the code is organized in the system.
Library code is organized in such a way that it can be used by multiple programs that have no connection to each other, while code that is part of a program is organized to only be used within that one program.