yash retweeted
Kinda funny that if ur religion loses enough wars it gets downgraded to mythology after a generation or two
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
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









