Explained with drawings
In the following pictures, we will take an in-depth look at the following code:
float _pow_recursion(float x, float y)
{
if (y == 0)
return (1);
if (y < 0)
return (_pow_recursion(x, y + 1) / x);
return (_pow_recursion(x, y - 1) * x);
}
What you are seeing here is a recursive function, which is a function that calls itself. It has 3 execution stages, set as if statements. The first one returns a value of 1, if our variable Y is equal to 0; the second one is executed if Y is lower than 0…
The experience we get when browsing the web is a rather simplistic one, stream lined. We write the domain name of the website we want to visit, hit enter, and that’s it. What is going on under the hood is way more convoluted than that. In order to see what is happening, I will try to explain what goes on from the moment you hit enter, to the moment your browser displays the desired website on screen. Before I can do that though, I will need to explain certain concepts first.
An introduction, and some ramblings on security, of IoT.
IoT is defined, in Wikipedia, as:
The Internet of things (IoT) describes the network of physical objects — “things” — that are embedded with sensors, software, and other technologies for the purpose of connecting and exchanging data with other devices and systems over the Internet.
The definition is very accurate, but lends itself to simplification. Sometimes it’s hard to understand new concepts when put in such stark terms.
What I will try to do here is go from a stark explanation of the subject, to a more amicable, accessible one. Why…
Sometimes writer, avid for programming.