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

Re: WOPopUpButton queston


  • Subject: Re: WOPopUpButton queston
  • From: Art Isbell <email@hidden>
  • Date: Sun, 23 Mar 2008 17:57:50 -1000

On Mar 23, 2008, at 5:45 PM, Gustavo Pizano wrote:

I hadn't think about hwat you said, but you definelty right, I can get rid o the getters and setters off, I will only need a Person attribute,

When surprises occur, I have found that I need to be able to debug when an attribute's value is being set or gotten. Without getters and setters, one cannot set a Java debugger breakpoint to pause when an attribute's value is being set or gotten. This is a restriction that isn't acceptable to me.


I also don't like public instance variables because they expose an object's implementation which violates a principle of object-oriented design. Sure, you can say that you'll never access a public attribute from outside the object's scope, but the temptation is there when the instance variable is public.

	But regardless of which you choose, your WO app will work correctly.

Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WOPopUpButton queston (From: Gustavo Pizano <email@hidden>)
 >Re: WOPopUpButton queston (From: Lachlan Deck <email@hidden>)
 >Re: WOPopUpButton queston (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: WOPopUpButton queston
  • Next by Date: Re: WOPopUpButton queston
  • Previous by thread: Re: WOPopUpButton queston
  • Next by thread: Re: WOPopUpButton queston
  • Index(es):
    • Date
    • Thread