• 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: Is this a violation of the EOF commandment?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a violation of the EOF commandment?


  • Subject: Re: Is this a violation of the EOF commandment?
  • From: Denis Frolov <email@hidden>
  • Date: Fri, 13 Nov 2009 09:28:33 +0300

Although this doesn't violate EOF commandments, I think it does
violate Principle of least astonishment. Here is a discussion of this
question on stackoverflow -
http://stackoverflow.com/questions/433678/modifying-setter-argument-is-it-hack-or-not

Personally, I'm with with the answer by Bill the Lizard although most
of the votes went to the opposite one (i.e. "it's ok to do that").

On Fri, Nov 13, 2009 at 12:49 AM, Ricardo J. Parada <email@hidden> wrote:
>
>     public void setCpt(String value) {
>         if (value != null) value = value.toUpperCase();
>         super.setCpt(value);
>     }
> P.S. I'm using eo-gap generation pattern.  So this class extends the _ class
> generated by the _WonderEntity.java template.
>
>
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Is this a violation of the EOF commandment? (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Re: new EOObjectStoreCoordinator and closing database connection afterwards
  • Next by Date: Re: UTF-8 forms and database, still some special characters get through as things like &#64257; Why?
  • Previous by thread: Re: Is this a violation of the EOF commandment?
  • Next by thread: Re: Is this a violation of the EOF commandment?
  • Index(es):
    • Date
    • Thread