Well, not really “duelling,” but alternative anyway. Dorothea concocted a beautiful version of Down and Out in the Magic Kingdom; then Steven Garrity figured he could do it, too.
I prefer Dorothea’s convenient table of contents on the left, and her shorter line length; I prefer Steven’s choice of colors and larger type (I publicly concede that I’m in line to make the transition to bifocals, but I’m not there yet).
It’s just terrific, though, that we live in a world where (with the author’ permission, or offline) we can choose the appearance of the book we’ reading. Too cool!
Posted by AKMA at January 27, 2003 10:20 PM | TrackBackWe 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: Tabitha at January 12, 2004 10:46 PMWhen 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: Ellis at January 12, 2004 10:46 PMTo address this issue, we turn to the second place to put variables, which is called the Heap. If you think of the Stack as a high-rise apartment building somewhere, variables as tenets and each level building atop the one before it, then the Heap is the suburban sprawl, every citizen finding a space for herself, each lot a different size and locations that can't be readily predictable. For all the simplicity offered by the Stack, the Heap seems positively chaotic, but the reality is that each just obeys its own rules.
Posted by: Edi at January 12, 2004 10:46 PMSeth 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: Rees at January 13, 2004 09:44 AMEarlier 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: Elias at January 13, 2004 09:45 AMThese secret identities serve a variety of purposes, and they help us to understand how variables work. In this lesson, we'll be writing a little less code than we've done in previous articles, but we'll be taking a detailed look at how variables live and work.
Posted by: Polidore at January 13, 2004 09:45 AM