• 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: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 7 Apr 2008 23:32:51 +0200


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
  • Follow-Ups:
    • Re: A few beginner questions
      • From: Adam Hall <email@hidden>
References: 
 >A few beginner questions (From: matty jones <email@hidden>)
 >Re: A few beginner questions (From: David Rowland <email@hidden>)

  • Prev by Date: Re: A few beginner questions
  • Next by Date: Re: Updates of Xcode and Docs
  • Previous by thread: Re: A few beginner questions
  • Next by thread: Re: A few beginner questions
  • Index(es):
    • Date
    • Thread