Pin
Send
Share
Send


Never pass fashion . Some people are fascinated and try to create them, although others lament their natural existence and try to eliminate them when they extend along their entire hair. We are talking about loops , those curlers or curls that are formed in the hair and that give a very particular appearance.

For example: “When I was little, my head it was full of loops ”, “The model surprised to change her look and abandon the loops”, "A loop fell right between his eyes, giving him a very nice appearance".

The loop concept, however, can also be used in other areas. You can mention as a loop to different elements that have curly appearance , similar to a helicoid . It is even possible to refer to loops that receive this denomination for its operation and not for its appearance.

In the field of programming , a loop or loop It is a structure that enables repetition of sentences In many opportunities. When the programmer stipulates a certain condition and that condition is met (that is, it is true), the execution of the loop occurs, which will only stop when the condition is no longer met.

What is the advantage of including a loop in programming? This type of structure allows an action to be repeated over and over again, without the need for copy an identical code In this way the final code is cleaner and can be modified more easily.

The loop is not only convenient in certain cases, but it is mandatory in others. At present, thanks to the advances of the technology, video games often include various types of particles, which are small graphic objects used to simulate water, fire, sand, earth and magic effects, among other things that were previously animated by hand and could not dynamically interact with the rest of the objects .

In most cases, especially in products that pursue realism, several hundred or more particles are needed by moving and reacting to the events of your environment individually; if a loop was not used to control them, the same code should be repeated for each of them, something no one would do in their right mind. The example of the particles, although only the programmers with more knowledge enter their field for the creation of special effects and the simulation of elements, is very suitable to understand the utility and the potential complexity of a loop.

Although a scene has thousands of particles of Water, for example, each one with its own life cycle, experiencing different things and adopting different aspects and sizes, we must not forget that they all start from the same class, from the same type of object, for which they share properties and functions. In other words, if all of them are instances of a class called "water," then they will have the same possibilities and the same "capabilities," their behavior will be based on the same code, even if the results are different each time.

A loop in which it controls a large group of particles offers each the same functions, the same lines of code; however, depending on the state in which each one is, they will travel one or the other path within the loop, and that is why some are likely to evaporate, others to soak a character's clothes and others, for example, spread on the grass This shows that while a loop can do the same at each turn, there may be direct or indirect conditions within it that multiply the possibilities.

For the telecommunications , a subscriber loop (also know as local loop ) is the section of a cable run linking the telephone exchange with the home of the person who uses the service

Pin
Send
Share
Send