Posts

Showing posts with the label api development

Preventing Your API From Sucking

Image
There are  so  many factors that go into success — market, product, requirements, customers, oh, the list goes on. That said, there are a couple of things that you  must  do to make sure that  failure  isn’t guaranteed. The following list isn’t exhaustive, but it is, most definitely, table-stakes these days for how you should structure your APIs. 1. Respect Every API : You don’t really know which API is going to be used, and which one isn’t. Murphy’s law pretty much guarantees that the throwaway buggy one that you put out there is going to be  the  one that causes you the most trouble. And  Hyrum’s law  will ensure that that shitty implementation will be made concrete, and you’ll never get rid of it. 2. Be Obvious : Make sure that there are no surprises. No unexpected side-effects, no behavior that isn’t documented. Seems like such a small thing, but, in the end, it’s the side-effects and/or hidden features that will get you. 3. ...