Friday, November 24, 2006

How would you quantify IT's investment in a well-defined exposed interface?

Do you always comply with the following standards?
  • IVARS declared as private
  • getters for most important IVARS
  • Immutable, i.e. getters and setters in the constructor
  • setters/mutators - state changes

API should never be a 1:1 exposure of the implementation. Interface should simply expose methods that solve the client's problems.

Why is "Receiver Relative" an important OOP concept?

Change versus ReadOnly - Changing an object is more imortant than the object you are just reading from. So, changingObject.doSomething(readObject)

Chad Salinas