• 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: Code Guidelines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Guidelines


  • Subject: Re: Code Guidelines
  • From: Robert Claeson <email@hidden>
  • Date: Mon, 31 May 2004 12:48:48 +0200

Georg Tuparev:

On May 31, 2004, at 1:11 AM, M. Uli Kusterer wrote:

When I feel disciplined, I usually name local variables as


Boys and Girls,

The beauty of Objective-C (inherited from SmallTalk) is that it tries to treat all kinds of things (objects, classes, protocols, invocations, ivars, local vars...) in a similar way. With KVC, often one does not know (and should not know) if there is an ivar, or a pair of accessor methods. So why so many of you are trying to make the life complicated? In what way "account" is communicating less useful information then say "iAccount"? And why the hell so many developers are happy to write
[accountList lastObject];
but when they add their own NSArray category, they write
[iAccountList mFisrtObject];

Very often I believe all these reverse hungarian notation & friends. are there to detract the attention from doing the programming to talking about doing programming. Or are they there to satisfy some unconscious masochistic and sadistic needs?

Georg,

Couldn't agree more. Writing mThisAndThat rather than thisAndThat just distracts from the problem at hand. Especially those who are schooled in Microsoft Visual Studio seems to have a hard time NOT prefixing all kinds of names in the programs with some kind of short-hand notation that is supposed to mean something.

/Robert
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Code Guidelines (From: Christoffer Lerno <email@hidden>)
 >Re: Code Guidelines (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Code Guidelines (From: Georg Tuparev <email@hidden>)

  • Prev by Date: Re: Window won't show a second time.
  • Next by Date: Re: Window won't show a second time.
  • Previous by thread: Re: Code Guidelines
  • Next by thread: Re: Code Guidelines
  • Index(es):
    • Date
    • Thread