Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1
Newest
 Teacher
Impact
~436 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
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