• 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: accessor generation???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessor generation???


  • Subject: Re: accessor generation???
  • From: "Erik J. Barzeski" <email@hidden>
  • Date: Sat, 06 Jul 2002 08:40:23 -0400

Hi,

On 7/5/02 1:37pm, Phillip Mills <email@hidden> wrote:
> On Friday, July 5, 2002, at 07:52 AM, Ondra Cada wrote:
>
>> I feel it somewhat strange: does that mean my programming style differs
>> so
>> much from the one of majority of others?
>
> I've been doing OO stuff (non-Objective-C) for at least 10 years and my
> experience is the same as yours. In fact, I'd come to believe that
> simple accessors were a symptom of a possible bad design. They often
> pointed to classes where no one had thought about their role or behavior.

Frankly, I think anyone who picks a side is wrong.

Say I've got Person.h/m. Guess what? Pretty accessor-heavy. Persons are
objects - they're models of real-world people (at least in this example).
But the controller? Pretty functionality-heavy. Because it controls the flow
and functionality of the program.

In other words, accessor-heavy classes are fine. In fact, I'd argue that
that's what most of the model classes should be (and when I say model I mean
MVC model, not "ideal" model).


--
Kindest regards,
Erik J. Barzeski

"Maybe fun is just fragments of existence with
Better packaging." - Apple CEO Steve Jobs, 1983
###################################################################
Email: erik@(anything below) AIM: iacas

http://iacas.org http://weims.net
http://techstra.net http://barzeski.com
http://cocoadevcentral.com http://soundsetcentral.com
http://freshlysqueezedsoftware.com http://applescriptcentral.com
###################################################################
_______________________________________________
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: accessor generation???
      • From: Phillip Mills <email@hidden>
    • Re: accessor generation???
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • Next by Date: Preview in Internet Explorer
  • Previous by thread: Re: accessor generation???
  • Next by thread: Re: accessor generation???
  • Index(es):
    • Date
    • Thread