Pin
Send
Share
Send


From french routine, a routine is a habit or a habit which is acquired by repeating the same task or activity many times. Routine implies a practice that, over time, develops almost automatically, without the need to involve reasoning.

For example: “I don't want to work in a office: I hate routine", “To my mother, the routine gives security and tranquility”, "The truth is that the routine bores me", "We will spend the weekend at the beach to break the routine and regain passion".

Life everyday It is usually made up of routines, especially in relation to the workplace; Getting up at 7 in the morning, having breakfast with a cup of coffee, traveling by train and having another coffee in the office is a routine shared by millions of people.

The routine is usually associated with tedious or bored , which is why holidays They appear as the moment chosen to set aside the routine and embark on activities that, due to the labor or academic obligations of the rest of the year, cannot be carried out.

On the other hand, it should be noted that the routine is a mechanism that provides security (minimizes unforeseen) and that saves time (by avoiding infrequent tasks). Of course, if taken to the extreme, this comes at a price; It is no coincidence that the highest rate of depression, stress and suicides occurs in cities, the undisputed focus of the unfortunate rat race.

Although it is a name that denotes a certain contempt for an animal species (as is the custom of the human being) the expression rat race He refers to an unbridled activity that does not have a clear objective, to that constant movement of life in the big cities, which keeps the inhabitants always busy and distressed to believe that they will not be able to fulfill all their obligations, and without the enough weather free to stop and reflect on their lives and their goals.

The concept in computer science

A routine (also known as function or subroutine, among other names) is a invariable sequence of instructions that is part of a Program and that can be used again and again. In this sense, the routine is presented as a sub-algorithm within the main algorithm (the program), which allows the resolution of a specific task.

Depending on the type of language, the routines offer a variable number of possibilities, which inevitably affect the logic used by developers when creating them. Two common examples of features that are not available in all cases are the type inline and the references as parameters.

The first refers to a type of function that instructs the compiler to insert its code in all the sites from which it is called, thus expanding the length of said sections in time of execution, but giving, in turn, greater comfort during the programming process. It is important to note that an inline function is different from a macro, both in antiquity and in benefits, being the first more modern and flexible than the second.

The functions they may or may not accept parameters, that is, values ​​to work on; these are not usually random, but correspond to data from the program itself, such as the position of an object or a state to which it is desired to pass. This information, however, is only a copy of the original, used simply as a guide; the languages ​​that accept the use of references as parameters, on the other hand, give the possibility of affecting the external variables, which is very useful, as long as they are not very heavy objects.

Pin
Send
Share
Send