The Artima Developer Community
Sponsored Link

Interface Design by Bill Venners
Strive for interfaces that are minimal and complete

Advertisement

Interface Design | Contents | Previous | Next

Would you rather have 20 or 200 buttons on your TV's remote control?

Minimize Interfaces


Why Minimize the Interface?

Scott Meyers in his book effective C++ said, "Strive for interfaces that are minimal and complete." Keeping the interface simple is not sufficient grounds for leaving out functionality the clients need. If you end up with too many methods, perhaps you've alotted too much responsibility to that object. That object might be trying to do too much. Consider factoring out some responsibilities to other objects. Good to minimize features, ship product, and get user feedback for next release. It is easier to add things later that change something that already exists.

Can go to far in minimizing. What are the heuristics? What about 500 objects each with 5 methods?

It is easier to add things later than to change something that already exists.


Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use