• 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: Georg Tuparev <email@hidden>
  • Date: Mon, 31 May 2004 11:02:41 +0200

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?

just wondering...

(I and my team does what NeXT and later Apple did since 1990 and never felt the need, or regretted that I or any of my colleagues did not used [iAccount mBalance] instead of [account balance]...)

Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
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.


  • Follow-Ups:
    • Re: Code Guidelines
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Code Guidelines
      • From: Robert Claeson <email@hidden>
References: 
 >Code Guidelines (From: Christoffer Lerno <email@hidden>)
 >Re: Code Guidelines (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: ANN: PyObjC 1.1
  • Next by Date: Re: Getting filename of just opened document...
  • Previous by thread: Re: Code Guidelines
  • Next by thread: Re: Code Guidelines
  • Index(es):
    • Date
    • Thread