Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 6
    What sort of logic? There is nothing wrong in putting validation logic, for example. On the other hand, a setter which dispatches a few events, calls a web service and updates the UI is completely wrong. Commented Jul 13, 2013 at 21:50
  • @MainMa I agree that validations are fine -- maybe adding some observers as well, right? Could you maybe give some examples of what you consider as more appropriate to put in a setter? Commented Jul 13, 2013 at 22:00
  • indeed, observers are right. As for the things which are appropriate for a setter, I let more experienced developers answer this question. Commented Jul 13, 2013 at 22:08