yash (@yasshhdev) header
yash (@yasshhdev) profile picture

fa nd fa

Terminal
Joined September 2023
Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)Photo by yash (@yasshhdev)
yash retweeted
Kinda funny that if ur religion loses enough wars it gets downgraded to mythology after a generation or two
475
15,346
375
301,572
5,361,607
yash retweeted
all Indian engineers would agree on this
42
78
5
2,209
136,795
the audacity to call it "must be your lucky day"
1
84
gpt seems a lil too honest here 🙂
1
108
4 hours of my life gone trying to make Prisma 7 work with Node 22 Kept getting :- > url is no longer supported > random module not found errors > prisma generate crashing , etc Tried everything — driver adapters, Node 20, deleting node_modules 100 times… nothing.Finally gave up and did > prisma@6 & client@6 Prisma 7 is bleeding edge and clearly not ready for normal humans yet Lesson learned: Prisma 6 + Node 22 = peace ✌️
3
1
386
was on 🪟
2
143
Why do I make simple SQL queries look complicated? Idk man… I start writing a JOIN and suddenly it looks like I’m building a whole db engine 😭
2
94
Do we actually use the “previous value” of a state in React? 🤔 I always thought usePrevious gives the real previous state But after messing with it, I realized it doesn’t exactly work like that It just holds whatever the value was one render ago. And if the component re-renders for some other reason, both “current” and “previous” end up being the same anyway So yeah… we aren’t really using the actual previous state — we’re just reading the value from the last render Working on a full blog about this — will share soon
2
85
People keep repeating this myth that “PostgreSQL doesn’t allow multiple SQL statements in one query”…that’s NOT true let me explain - It does allow it — it’s your client library + protocol mode (simple vs extended) that decides what actually runs. In simple protocol, PostgreSQL will happily execute multiple statements in a single query string. Most people just don’t know how their driver behaves. I’m dropping a full blog soon explaining: • why your DROP TABLE runs even if the next statement errors • how simple protocol actually processes statements • why extended protocol feels “single-statement only” • and how to avoid accidentally nuking your tables Did you know this?
73
That feeling of relief when you finally understand why TypeScript is shouting at you 😭 — and here it turns out it was just double WebSocket imports (browser one + ws library) That’s why TS is so loved ♥️ . .
41
Is it just me, or does Telegram have the worst scrolling experience? 🤦‍♂️ You try to scroll up a little, it jumps to the top. Scroll down slightly, it shoots to the bottom. Is this a glitch on my device, or do other Telegram users face this too? Why is Telegram scrolling so bad?
90