4 ms·
The best way to create an API that feels like their creators never used them is to build one that you would use yourself. If you want to build one that others c
by hsmyers 16y ago
The best way to create an API that feels like their creators never used them is to build one that you would use yourself. If you want to build one that others can use and use easily then you need to put yourself in their shoes, not your own. Otherwise it's just one more library built on some one else's idea of a good time. That said if absolutely no one else is ever going to see, let alone use this API, then certainly build what works for you... just remember the maxim of writing as though the person/maintainer after you is a psychopath who knows where you live.
- jamii 16y agoOr even better, write the app's frontend using the public API (and only the public API, no cheating).