• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A few beginner questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: A few beginner questions (From: David Rowland <email@hidden>)

  • Prev by Date: Re: A few beginner questions
  • Next by Date: Re: A few beginner questions
  • Previous by thread: Re: A few beginner questions
  • Next by thread: Re: A few beginner questions
  • Index(es):
    • Date
    • Thread