API wrapper best practices?
piemas25 at gmail.com
Sat Mar 23 16:35:16 GMT 2013
If you're feeling lazy as you said, i'd say: provide methods with the
same names as your API, and the same parameters. This way you avoid
the need for much documentation.
If you're less lazy and the API is not good enough, you might want to
provide more explicit method names, as well as some more useful /
complex methods. You might also want to make some parameters optional,
or to give them default values; in which case you should document it.
More information about the london.pm