Divyam Gupta (@divyamdotfoo) 's Twitter Profile
Divyam Gupta

@divyamdotfoo

Learning how to build software | Typescript | Nextjs | GO
earthweinherit.vercel.app
codesnaps.vercel.app

ID: 1562822490694774786

linkhttps://divyam.foo calendar_today25-08-2022 15:21:57

248 Tweet

27 Followers

167 Following

Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

When images are cached by the browser, they can load before React attaches the onLoad handler, causing the callback to never execute.

Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

TIL 🔧 TRANSPILERS (convert modern JS/JSX → older JS) ├─ Babel: slow, JS-based, highly configurable ├─ SWC: does Babel's job, 20x faster (Rust) └─ esbuild: does Babel's job + bundles, even faster (Go) 📦 BUNDLERS (combine files into optimized bundles) ├─ Webpack:

Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

Exported my ChatGPT data. 2,899 chats in ~2 years. First chat title: “JavaScript recursion explained.” That’s ~2.9k fewer Google, Stack Overflow, and Reddit searches. How many do you think you’d have?

Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

TIL: How to make auth passwordless You scan a QR code. Your phone and the server now share the same secret (a random string). That secret never changes. Your authenticator app takes that secret + the current time, runs them through math, outputs a 6-digit code. The server does

Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

TIL Python's venv drops a .gitignore with just * inside your virtual env folder. Git checks .gitignore at every directory level, so that single asterisk quietly keeps your entire venv out of version control. Neat little detail I never noticed.

Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

TIL: Brave's 12-word sync phrase encodes your entire cryptographic identity. Brave never stores your keys—just uses your phrase to regenerate them on your device. Lose the words = lose the account permanently. Trade-off: privacy from Brave, but 100% your responsibility to protect

Ian Carroll (@iangcarroll) 's Twitter Profile Photo

If you try and copy and paste something from Coursera, they hide a prompt injection in your clipboard. It tells the AI agent to click on an invisible button called "AiHoneypot" that presumably then bans you from the course.

If you try and copy and paste something from <a href="/coursera/">Coursera</a>, they hide a prompt injection in your clipboard.

 It tells the AI agent to click on an invisible button called "AiHoneypot" that presumably then bans you from the course.
Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

Building a chat UI? Instead of rAF + scrollTop gymnastics to keep view on the latest message, render messages newest-first and use flex-col-reverse. The browser does the scroll positioning for you.

Building a chat UI? Instead of rAF + scrollTop gymnastics to keep view on the latest message, render messages newest-first and use flex-col-reverse. The browser does the scroll positioning for you.
React (@reactjs) 's Twitter Profile Photo

The React Foundation has officially launched, hosted by the Linux Foundation. Read more here: react.dev/blog/2026/02/2…

The React Foundation has officially launched, hosted by the Linux Foundation. Read more here: react.dev/blog/2026/02/2…
Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

I'm hosting a website on vercel but the domain itself is managed by cloudflare. Vercel is asking me to disable cloudflare proxy for better performance. What should I do?

I'm hosting a website on vercel but the domain itself is managed by cloudflare. Vercel is asking me to disable cloudflare proxy for better performance.
What should I do?
Divyam Gupta (@divyamdotfoo) 's Twitter Profile Photo

Is RAG still needed, considering long context windows? I came across this video by an IBM tech explaining the pros and cons of using RAG with longer context windows. I’m new to this field and would love to hear the community’s thoughts on this. youtube.com/watch?v=UabBYe…