April 15, 2003
gvus.org: Global Vote for U.S. President

centerdemonstration.jpg

As America invades, judges and acts without regard to world opinion it exposes more clearly the dire need to hold the President accountable to world opinion for re-election. Change America from with-in and from with-out. End geopolitical barriers to justice.

The final two candidates that America produces will be voted on by every country that has a legitimatized voting system. Each foreign vote will count 1/8th the American citizen's vote.

Posted by Brian Stefans at April 15, 2003 07:09 PM | TrackBack
Comments

Wow this is fantastic.
Even if impossible, for now, a good dream an excellent point

Posted by: Jen Anders on April 17, 2003 03:29 PM

For this program, it was a bit of overkill. It's a lot of overkill, actually. There's usually no need to store integers in the Heap, unless you're making a whole lot of them. But even in this simpler form, it gives us a little bit more flexibility than we had before, in that we can create and destroy variables as we need, without having to worry about the Stack. It also demonstrates a new variable type, the pointer, which you will use extensively throughout your programming. And it is a pattern that is ubiquitous in Cocoa, so it is a pattern you will need to understand, even though Cocoa makes it much more transparent than it is here.

Posted by: Eli on January 18, 2004 09:25 PM

This will allow us to use a few functions we didn't have access to before. These lines are still a mystery for now, but we'll explain them soon. Now we'll start working within the main function, where favoriteNumber is declared and used. The first thing we need to do is change how we declare the variable. Instead of

Posted by: Sander on January 18, 2004 09:25 PM

When a variable is finished with it's work, it does not go into retirement, and it is never mentioned again. Variables simply cease to exist, and the thirty-two bits of data that they held is released, so that some other variable may later use them.

Posted by: Gawen on January 18, 2004 09:26 PM

Let's take a moment to reexamine that. What we've done here is create two variables. The first variable is in the Heap, and we're storing data in it. That's the obvious one. But the second variable is a pointer to the first one, and it exists on the Stack. This variable is the one that's really called favoriteNumber, and it's the one we're working with. It is important to remember that there are now two parts to our simple variable, one of which exists in each world. This kind of division is common is C, but omnipresent in Cocoa. When you start making objects, Cocoa makes them all in the Heap because the Stack isn't big enough to hold them. In Cocoa, you deal with objects through pointers everywhere and are actually forbidden from dealing with them directly.

Posted by: Henry on January 18, 2004 09:26 PM

A variable leads a simple life, full of activity but quite short (measured in nanoseconds, usually). It all begins when the program finds a variable declaration, and a variable is born into the world of the executing program. There are two possible places where the variable might live, but we will venture into that a little later.

Posted by: Cesar on January 18, 2004 09:27 PM
-->