by shigemk2

当面は技術的なことしか書かない

97 Things Every Programmer Should Know 55 Make Interfaces Easy to Use Correctly and Hard to Use Incorrectly

Interfaces Easy to Use Correctly and Hard to Use Incorrectly

A good way to design interfaces that are easy to use correctly is to exercise them before they exist

Making interfaces hard to use incorrectly requires two things. First, you must anticipate errors users might make and find ways to prevent them. Second, you must observe how an interface is misused during early release and modify the interface—yes, modify the interface!—to prevent such errors.