May 13, 2003
nothingness.org: May 68 Picturebooks
[We've been bandying around the word "detournement" a lot on this site, occasionally rather inaccurately -- a lot of what's been going up is simply collage of some sort, rarely wit the symbolic, even utopian charge that classic "detournements" emit. The link below is to images of detourned items from the May 68 uprisings, along with several links to "pro-situ" detournements on things like punk record jackets, etc.]
Picturebooks @ nothingness.org: Paris -- May 1968
Posted by Brian Stefans at May 13, 2003 09:57 AM
Note the new asterisks whenever we reference favoriteNumber, except for that new line right before the return.
The most basic duality that exists with variables is how the programmer sees them in a totally different way than the computer does. When you're typing away in Project Builder, your variables are normal words smashed together, like software titles from the 80s. You deal with them on this level, moving them around and passing them back and forth.
This code should compile and run just fine, and you should see no changes in how the program works. So why did we do all of that?
But some variables are immortal. These variables are declared outside of blocks, outside of functions. Since they don't have a block to exist in they are called global variables (as opposed to local variables), because they exist in all blocks, everywhere, and they never go out of scope. Although powerful, these kinds of variables are generally frowned upon because they encourage bad program design.
When Batman went home at the end of a night spent fighting crime, he put on a suit and tie and became Bruce Wayne. When Clark Kent saw a news story getting too hot, a phone booth hid his change into Superman. When you're programming, all the variables you juggle around are doing similar tricks as they present one face to you and a totally different one to the machine.