Sneaky Code Bites Back
architecture-weekly.com·5h·
Discuss: r/programming

Welcome to the new week!

Sneaky code bites back, I realised that again recently.

I realised I’d been writing terrible code when I couldn’t explain it to myself.

The code worked. It was adding SQLite support toPongo. But when I tried to describe how I was implementing multi-database support, I heard myself saying:

“First it checks if the Promise is cached, then it creates a proxy that defers to the real implementation which doesn’t exist yet, but will be loaded dynamically when...”

Yes, I sounded insane.

Pongo is my attempt to bring the familiar MongoDB API and use relational databases as document databases.

If you’ve used MongoDB, you know the API collection.find(), collection.insertOne(), collection.updateOne()...

Similar Posts

Loading similar posts...