the code in your avatar, btw, isn’t very meaningful.
as far as I can tell, it looks like this:
if (x != y)
{x = y;}
if (y != x)
{y = x;}
This syntax is a pretty regular syntax for a lot of programming languages, and will have a nearly identical meaning in programming languages that use this type of syntax.
So, for the sake of simplicity, I’ll describe what it does in JavaScript, since it will do the same in languages such as Java, C#, and probably C and C++ as well.
The first line checks if the variable x has the same value as y.
If it doesn’t, then in line 2 it sets the value of x to the value of y.
In line 3, it checks if y has the same value as x.
But, because of line 1 and 2, we already know it has the same value. We just gave it the same value – no need to check it.
Line 4 sets the value of y to x, but it was already equal to x, so … it doesn’t really do anything useful. It just sets a variable to be the same as it already is.
So basically, so far, all the program has done is set the value of one variable to be equal to the value of another variable. Twice.
It’s kinda funny to see the stuff that non-programmers do with code. It’s unlikely that a programmer made that picture, because a programmer would not think that code was very interesting. There’s all sorts of goofy stuff in movies and shows with stupid programming. For example, I recently read about this show that showed a computer screen full of ‘code’ and the code on the screen was supposed to send commands to a Nuclear Launch facility. But in fact the code on the screen was only html for a shitty website – it wasn’t even code, it was just text describing the content and layout of a web page.
Sorry, this is all off topic. I just found that amusing.
http://moviecode.tumblr.com/