What is concatenation?

What Does concatenation Mean

The late Latin word concatenatio arrived in Castilian as concatenation . The term mentions the act and the result of concatenating : linking , assembling or coupling different elements .

In the field of computing , concatenation is an operation that consists of joining two or more characters to develop a string of characters , known in English as a string . This chain is a finite and ordered sequence of elements that are part of a certain formal language. Concatenation can be accomplished even by joining two character strings or by linking one character to another string.

Throughout the arduous and complex process involved in developing a computer program, be it an application, a video game or any other class, the concept of concatenation is used very often, since it is one of the most useful operations of the text strings, another of the fundamental elements of programming .
Although in an example out of context, such as "ab" concatenated with "ril" gives us the string "April", it is not possible to appreciate its usefulness, the concatenation has great potential in computer programming . One of the most common cases is the loading of resources, among which we have images, sounds, three-dimensional objects, libraries and the text of the user interface itself.
Each of the resource "bundles" has a specific name, and can be stored in a particular folder for easy organization and maintenance. It goes without saying that the nomenclature , the way in which they are grouped and the methods used to access the resources arise from the decision of each developer, so on two given computers they can be very different.
Part of the name of a package or its directory is usually the code for the language to which it corresponds ("es" for Spanish, "en", for English, etc.), although the root is the same for all; for example: "dialogue01_es" and "dialogue01_en" refer to the same dialogue, although the first contains the version in Spanish, and the second, in English.
This is where concatenation becomes especially useful: once we take from the database the root of the resource name that we need to load into memory (in this case, "dialog01"), we use a function that allows us to create a new string text adding an underscore and the ending corresponding to the language selected by the user; having completed this task, we can now pass the full name of the resource to the load function.

In a similar sense, the idea of ​​concatenation is used with reference to the bonding of a carbon atom to other atoms of the same type for the formation of chains , which can be cyclic, branched or linear.
Concatenation, on the other hand, is a rhetorical device that consists of repeating the final word of a verse or clause at the beginning of the next verse or clause. For example: "I admire your beautiful face / Face of a free woman / Free like the birds in the forest . " As can happen with other literary resources, it is necessary to use it with good taste and in a way that does not generate in the reader the sensation of being before an arbitrary reiteration.
The use of the concept of concatenation in colloquial language is related to a succession , a series or a continuity of events or actions : "The first goal of the opposing team came after a series of defensive errors by our team" , "Today I will not be able to go to see you: I have planned a concatenation of meetings that will not give me respite ” , “ Justice pointed out that the concatenation of temporary contracts is illegal ” .

Go up