Monday, 30 March 2015

The Daily Loop

          So we all know what loops are (or at least you will shortly after you finish reading this paragraph about them). In programming it is a sequence of commands that are repeated until a condition is met. A loop can also be programmed so that if a condition is met, then it will complete the listed commands. Repetition loops are supper important in not only video games and computer programs but also in the way our body functions and how we live.


         Your body is amazing in the way that it has thousands of automatic "commands" that process without you even thinking about it. If your body is dehydrated you will fell thirsty, or if your eyes are dry or there is something in them you will blink. If blinking was a loop your brain would detect if your eyes were dirty or clean and would repeatedly blink until the problem was resolved. However this commend isn't done just once, the brain constantly monitors or checks to see if your eyes are dirty or dry (meeting certain conditions) and if they are they will blink again until they are clean (repeating) and then the "loop" will reset almost and start checking again to see if your eye is dry or dirty.

          

The same type of idea applies if your body is dehydrated. Your body is constantly checking how hydrated you are and if it gets to low or to a certain level, it will notify the brain and you will feel thirsty. Just like a loop IF a certain condition is met like getting thirsty THEN you will feel thirsty and it will REPEAT these feelings of thirst until the problem is resolved and you re-hydrate.

                            

No comments:

Post a Comment