Re: A few beginner questions
Re: A few beginner questions
- Subject: Re: A few beginner questions
- From: Chris Williams <email@hidden>
- Date: Mon, 07 Apr 2008 13:58:29 -0700
- Thread-topic: A few beginner questions
Even further to this point, declaring the variable type in the name can be a
mess as well. Say for example, you have intTempOne and later on down the
road you need it to be a long or a double. Wouldn't that be confusing?
I suggest you name variables entirely on their purpose (dbIndexKey,
userLastName, costOfGoodsSold, etc.) and let the code tell the follow on
programmers the exact data type.
> From: David Rowland <email@hidden>
> Subject: Re: A few beginner questions
>
> 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.
_______________________________________________
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