AKMA's Random Thoughts

July 18, 2003

Killer Analogy

Mitch Ratcliffe has summed up in a resonant analogy an op-ed piece by Paul Krugman (NYT, registration required, sorry), and in so doing has handed presidential candidates an analogy that ought to fly, that should make sense to people who aren’t ready to spend a lot of time analyzing the details of Bush’s economic policies:

“President Bush is running the country like Enron.”

Put that in a few mass-market media spots, and see how the voters respond.

Posted by AKMA at July 18, 2003 11:40 AM | TrackBack
Comments

Being able to understand that basic idea opens up a vast amount of power that can be used and abused, and we're going to look at a few of the better ways to deal with it in this article.

Posted by: Barnard at January 12, 2004 09:05 PM

We can see an example of this in our code we've written so far. In each function's block, we declare variables that hold our data. When each function ends, the variables within are disposed of, and the space they were using is given back to the computer to use. The variables live in the blocks of conditionals and loops we write, but they don't cascade into functions we call, because those aren't sub-blocks, but different sections of code entirely. Every variable we've written has a well-defined lifetime of one function.

Posted by: Meredith at January 12, 2004 09:05 PM

Earlier I mentioned that variables can live in two different places. We're going to examine these two places one at a time, and we're going to start on the more familiar ground, which is called the Stack. Understanding the stack helps us understand the way programs run, and also helps us understand scope a little better.

Posted by: Wombell at January 12, 2004 09:05 PM

Seth Roby graduated in May of 2003 with a double major in English and Computer Science, the Macintosh part of a three-person Macintosh, Linux, and Windows graduating triumvirate.

Posted by: Charles at January 13, 2004 12:22 PM

Seth Roby graduated in May of 2003 with a double major in English and Computer Science, the Macintosh part of a three-person Macintosh, Linux, and Windows graduating triumvirate.

Posted by: Alan at January 13, 2004 12:23 PM

This variable is then used in various lines of code, holding values given it by variable assignments along the way. In the course of its life, a variable can hold any number of variables and be used in any number of different ways. This flexibility is built on the precept we just learned: a variable is really just a block of bits, and those bits can hold whatever data the program needs to remember. They can hold enough data to remember an integer from as low as -2,147,483,647 up to 2,147,483,647 (one less than plus or minus 2^31). They can remember one character of writing. They can keep a decimal number with a huge amount of precision and a giant range. They can hold a time accurate to the second in a range of centuries. A few bits is not to be scoffed at.

Posted by: Dudley at January 13, 2004 12:23 PM