Sneaky Code Bites Back
architecture-weekly.com·19w·
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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help