AKMA's Random Thoughts

May 29, 2003

Found in Augusta


Josiah as an eightennth-century, eight-year-old apprentice scribe
By popular demand — or at least, by suggestion from a couple of people — I tracked down my copy of the photo of Si as an apprentice in Old Fort Western. I had remembered his hair as being blonder than it shows up here, but the lighting is obviously tricky. He’s slenderer now than he was then; no baby fat on this year’s model. Still the radiance and the joyous outlook remain unchanged. The photo’s pretty dusty. My apologies to those of you who were planning to print it out and pin it on your bedroom wall.

Not only was he a good-looking, angelic kid, but he’s grown into a powerful (if somewhat grisly) writer. . . .

Posted by AKMA at May 29, 2003 12:34 AM | TrackBack
Comments

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: Gentile at January 13, 2004 11:43 AM

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: Georgette at January 13, 2004 11:43 AM

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: Prospero at January 13, 2004 11:43 AM