3 ms·
I am working on a fairly ambitious project. It is in the stages where we are nearing the end, and the tofu is getting firmer. I had an issue, last week, where
by ChrisMarshallNY 5y ago
I am working on a fairly ambitious project. It is in the stages where we are nearing the end, and the tofu is getting firmer.
I had an issue, last week, where a bug was caused by an omission I left from an SDK that I wrote, maybe, eight years ago. It was a simple thing. I didn't add a "RefCon" to a server interaction, so I couldn't attach a reference context to a callback. This is a classic pattern, that I've used for decades, and I have no idea why the hell I didn't add it to this SDK. I suspect that it might be that the SDK was for a fairly wide audience, and I probably thought that they wouldn't understand it. So here I am, paying the price for underestimating my user base (which, so far, is Yours Truly).
Anyway, the "fix" was to implement a semaphore, and treat the call as blocking, which is awful. I really need to go back and change the SDK, but that's a fairly fundamental change, that I can't afford, right now (the SDK tofu is rock-hard).
Such is the life of a shipping developer...
- ChrisMarshallNY 5y agoActually, it was about fiver or six years ago. It was an early Swift project. https://github.com/bmlt-enabled/BMLTiOSLib https://github.com/bmlt-enabled/BMLTiOSLib