API default values

Thoughts By 3 years ago

A small rant.

I recently implemented an iOS SDK into an app I built. Everything seemed fine during development, everything worked as expected. In production though, the SDK wasn’t doing what it was supposed to.

It turns out that when using their SDK, by default it is set to ‘development’ mode. Now surely by default they can scan my app’s provisioning profile and determine this without me having to set this flag. But if I do need to set it manually, then the default value should be something non-volatile, which in this case should be set to ‘production’ mode, so obviously it gets noticed and fixed during development, and not the other way around.