What’s the config convention?

Print anything with Printful



The configuration convention is a programming philosophy that simplifies table and element design by using a base class name. This reduces coding and spelling errors, and the configuration file is smaller, improving functionality. Unique names are not needed for each element, and a smaller configuration file leads to a better program.

The configuration convention is a computer programming philosophy that usually makes it easier for programmers to design tables and elements based on a class name. When the configuration convention is used, only elements that go against the base class name should be written in the encoding. In general, less coding is required with this philosophy, and there are generally fewer spelling mistakes. Another advantage is that the configuration file which stores all class names is usually smaller, which increases coding speed and stability.

In the philosophy of the configuration convention, there may be one or more main classes used in the program, with underlying sub-elements. For example, a program intended for counting inventory might have a class named “Inventory”. In this class there can be tables and elements that have the same name but are distinct due to their function. This distinction means that the programmer does not normally have to come up with unique or different names for each element, which can be time consuming and can be difficult when there are many similar elements.

While using the same class name for each element is fundamental to configuration convention, there are times when the programmer will want or need an element to have a different name. This can be used to further distinguish the item or for a variety of other reasons. In this philosophy, only elements not named after the main class need to be written into programming; everything else is assumed to have the name of the main class.

In terms of coding, the configuration convention often means that overall less programming will be required, because the names don’t have to be hard coded. Also, there tend to be fewer problems with spelling errors, such as misnaming an element, because fewer names are needed overall. Both make it easier for the programmer to create the software.

Functionality is also improved with the configuration convention due to a smaller configuration file footprint. Whenever a class or element name is entered into programming, it is also stored in the configuration file so that it can link all elements. A large configuration file often leads to a slow and volatile program, because there are many things that need to be taken into account. If the file is small, there’s less to worry about and the software is usually better overall.




Protect your devices with Threat Protection by NordVPN


Skip to content