I'm pretty sure isRecord is our fault

@tldraw
अंग्रेज़ी21 घंटे पहले · 09 जुल॰ 2026
263K
1.1K
62
19
364

TL;DR

The tldraw team traces the origin of the viral isRecord coding pattern back to their own data store, showing how open-source code influences AI model weights.

A few weeks ago, many programmers (or perhaps former programmers) began to notice that OpenAI’s Codex model had developed an obsession with defensive coding.

Nothing captured this better than isRecord, a ridiculous guard on whether an object-like object is actually an object, that began appearing everywhere.

https://x.com/weswinder/status/2073959658167898594

https://x.com/cnakazawa/status/2062755985702494643

https://x.com/thdxr/status/2069927201638682976

The quirk quickly became a meme. It’s even available as npm package.

Hey I know that code

Now I’ve always used isWhatever for helpers that return booleans. I’ve had to occasionally bully my poor colleagues to use it too, both for style consistency and because of a little thing called founder mode.

So when all of this isRecord discourse reached my timeline I had to pause. I was certain that I’d seen isRecord before.And sure enough, a search of tldraw’s code-base revealed it:

tldraw - inline image

This guard is part of our data store package, where all information in the tldraw canvas is stored as a flat reactive map of objects, or “records”. It’s a simple guard and more about assigning a type than really protecting the store.As far as I can tell, these lines are the source of the isRecord so beloved by coding models. If you search for the code on GitHub, you’ll find tldraw and many copies of tldraw, followed by newer code written by Codex.

tldraw - inline image

The only other repo I’ve found to use isRecord from the before-times is RocketChat’s version, added in July 2025:

tldraw - inline image

Not to brag, but our isRecord predates that by at least two years. In fact, I think we wrote the store in the summer of 2022, though the git blame only takes us back as far as 2023, when we moved the code over from the private repo to the public one.

10,000 years of isRecord

In the end, I have to admit some pride in having had a tiny influence over the weights of such incredible models. The next time you see an isRecord in your code base, please think of tldraw.

एक क्लिक में सहेजें

YouMind में वायरल लेखों की AI गहन पढ़ाई

Save the source, ask focused questions, summarize the argument, and turn a viral article into reusable notes in one AI workspace.

Explore YouMind
क्रिएटर्स के लिए

अपने Markdown को एक साफ़-सुथरे 𝕏 आर्टिकल में बदलें

जब आप अपना लंबा कंटेंट पब्लिश करते हैं, तो इमेज, टेबल और कोड ब्लॉक को 𝕏 के लिए फ़ॉर्मेट करना मुश्किल होता है। YouMind पूरे Markdown ड्राफ़्ट को एक साफ़-सुथरे, पोस्ट के लिए तैयार 𝕏 आर्टिकल में बदल देता है।

Markdown से 𝕏 आज़माएँ

समझने के लिए और पैटर्न

हाल के वायरल लेख

और वायरल लेख देखें