All posts

Development

A beginner's guide to software development kits

A beginner's guide to software development kits

An SDK is a box of tools someone else built so you do not have to. Payments, maps, analytics, push notifications — you drop one in and get a feature that would have taken a month.

That is the pitch, and it is mostly true. The part that is left out is that you have also just taken on a dependency you cannot fix when it breaks.

What is actually in one

  • Libraries — the code that does the work.
  • Documentation — how you are meant to call it.
  • Sample projects — what it looks like when it works.
  • Sometimes a debugger or a test harness.

The four questions before you add one

Every SDK you add is weight in your app and a company you now depend on. Before it goes in:

  • How big is it? Some analytics SDKs are larger than the app they measure.
  • What does it collect? You are answerable for it, not them.
  • When was it last updated? An SDK quiet for two years is a liability, not stability.
  • How hard is it to remove? Answer this before you add it, never after.

A good rule: if the SDK saves less than a week of work, write it yourself. You will spend that week eventually, either way, and this way you can fix it.

The version trap

Pin the version. Never take an automatic upgrade in a build you are about to ship. The most reliable way to break a working app is to let a dependency change on its own the night before release.

Rezaul Karim

Written by

Rezaul Karim Lead developer

Rezaul builds the back end on most Baodigital projects and has spent the last eight years untangling other people's databases. He is happiest when a page that took nine seconds takes under one.

Got a project that needs this kind of thinking?

Book thirty minutes. We will tell you what it takes, whether or not you build it with us.

Book a call