139 reputation
1
bio website
location
age
visits member for 2 years, 8 months
seen Dec 9 '13 at 5:35

Nov
21
awarded  Teacher
Nov
1
comment Finding a definition for this anti-pattern
An API should be well-thought out, designed and negotiated with the consumer to ensure that it provides the services it should. It should be designed with all of the features available to the language to help ensure it is not misused (it is the developer's user interface). The benefit of using types instead of strings is that types require less documentation because the behavior and constraints are intrinsic and enforced by the compiler. A good API will only require minimal documentation, and usage and constraints will be clearer for everyone as a result.
Nov
1
answered Finding a definition for this anti-pattern