Re: A few beginner questions
Re: A few beginner questions
- Subject: Re: A few beginner questions
- From: Adam Hall <email@hidden>
- Date: Tue, 8 Apr 2008 07:24:37 -0400
With many editors these days, including XCODE, in a couple of clicks
you can check a variables type. I found little use for knowing the
type via Hungarian notation, and its impossible to enforce with large
teams and over years and years of development (unless you love to
spend most of your time doing that which is common in IT management).
On Apr 7, 2008, at 5:32 PM, Jean-Daniel Dupas wrote:
Le 7 avr. 08 à 22:17, David Rowland a écrit :
For those that may not know what this is, it is declaring the
variable type in the name; for example dblNumberOne or intTempOne.
I was just curious, this teacher seems to be pretty good but his
code sometimes makes no sense or he do things certain ways, just
because that is the way you are supposed to do them, giving us no
reason for it.
The source code should BE the documentation as far as possible.
Knowing the type of a variable is important, but even more
important is knowing its purpose. If the name can reflect both,
fine. Names like "dblNumberOne" or "intTempOne" are little help.
Yes, and renaming all your variable from intTempOne to
nsintegerTempOne for 64 bits transition should be really funny. I
think i will continue to stay away from Hungarian notation.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
email@hidden
==========================================================
"Blessings of the state, blessings of the masses."
Please use PGP for communication. E-mail me if you need help.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.7 (Darwin)
mQGiBEbvV0cRBACc1i8mbbhndomp7rjRs5QZVEPAhCrVWAqMgZH25vVGmX+Tz3Ys
I27ki0ccX7AEjL5dGc1p6C8n95FvE9kSdWZooDY9JhyW5sKFFbsacUubk55ytS9r
OFBm93SIkqehF/SutkZ5j3+V0Re7rx9fqubZNfejvfYhouBTybbSTw9LbwCg/Y9z
SAyg9wglo1d3ZWWRwdijTh8EAJiLm67RKDXn8jXYDEJf7cCt0Vb7YglSP90N3P6E
U6MTCh2otB2HP5AVmY53v3etlSOCDMiIC+K8wUDYOYx9EFESROJgspDCYmLjkjYw
6f003NkvFMeI7Eov/+uwmnN5wzecCVbxblCkk7K8IQ9hB2P/K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33eCzq/cFySNgniFy84rIhPBBgRAgAPBQJG71dHAhsM
BQkDunP5AAoJECODZqZxHj7UvswAoKnSwoa+Ey5eJrbTqgEI5bv18GiEAKCDSBlM
JOUrtnyVN5aL1HacO2DFng==
=31KM
-----END PGP PUBLIC KEY BLOCK-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden