Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Guidelines For Designing Clean Interface

When I read articles on software development, I often heard of the phrase "clean interface". People talked about clean interface for APIs, and classes.

How do you define "clean interface"? Is there any guideline for designing a system with clean interface?

like image 585
hongster Avatar asked Feb 26 '10 02:02

hongster


1 Answers

Whole books have been written on this, and Framework Design Guidelines (.NET-centric) is one of my favorites. There's a lot to it, and no simple answer, but if I were pressed for a simple answer, I'd say design an API so that the simple stuff can be done without the dev having to read any extended documentation. That implies a straightforward, consistent interface with sensible, descriptive names. Don't make it hard to do the basic stuff.

like image 140
Michael Petrotta Avatar answered Sep 21 '22 22:09

Michael Petrotta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!