Well, now we’re getting down and dirty in the N E A/Digital-ID controversy. It looks like the core issue is, “Who is a hippie?” Eric obviously isn’t; David issues a partial disclaimer; the world waits for Doc to make an explicit statement on his hippie status. For my part, I’m willing to say it loud, I’m a hippie and proud.
What’s so funny ’bout peace, love, and understanding?
I think that hereafter, I’ll try to keep my mouth shut about business models, frictionlessness, exchange value, and other stuff about which I know next to nothing, and concentrate on “reputation.” But we’ll see what I actually do.
Posted by AKMA at December 26, 2002 10:49 AM | TrackBackHow in god's name did this get started? I accused some folks of being "hippies" in an unrelated rant weeks ago -- and have said nothing about it in this discussion. I blame weinberger ;-)
ugh. i'm now officially giving up.
Posted by: Eric Norlin at December 26, 2002 01:44 PMBut 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.
Posted by: Blaise at January 13, 2004 03:07 AMFor 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: Sampson at January 13, 2004 03:08 AMThis 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: Effemia at January 13, 2004 03:08 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: Wombell at January 13, 2004 09:14 AMSince the Heap has no definite rules as to where it will create space for you, there must be some way of figuring out where your new space is. And the answer is, simply enough, addressing. When you create new space in the heap to hold your data, you get back an address that tells you where your new space is, so your bits can move in. This address is called a Pointer, and it's really just a hexadecimal number that points to a location in the heap. Since it's really just a number, it can be stored quite nicely into a variable.
Posted by: Arthur at January 13, 2004 09:15 AMBut 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.
Posted by: Jesse at January 13, 2004 09:16 AM