Old: useEffect, socket.on, manual cleanup, payloads typed as any.
New: useListener with the event definition imported from the backend.
Reconnects and unsubscribes handled, payloads typed end to end.
Old: useEffect, socket.on, manual cleanup, payloads typed as any.
New: useListener with the event definition imported from the backend.
Reconnects and unsubscribes handled, payloads typed end to end.
– useState
– useRef
– useEffect para cerrarlo al hacer clic fuera
– z-index: 9999
– una librería más en el package.json
El mismo menú en #HTML: `popover`
Ejemplos y demo completa:
baumannzone.dev/blog/popover...
– useState
– useRef
– useEffect para cerrarlo al hacer clic fuera
– z-index: 9999
– una librería más en el package.json
El mismo menú en #HTML: `popover`
Ejemplos y demo completa:
baumannzone.dev/blog/popover...
"So our solution has been to just ban it in product code."
"And effectively, this problem has now been categorically eliminated. And we never need to catch that during code review again."
"So our solution has been to just ban it in product code."
"And effectively, this problem has now been categorically eliminated. And we never need to catch that during code review again."
- Ban 99% of explanatory comments (they just lead to workarounds)
- Create API's that hide complexity from agents
Full talk below. (2/2)
- Ban 99% of explanatory comments (they just lead to workarounds)
- Create API's that hide complexity from agents
Full talk below. (2/2)
If I had to pick one still from that felt genuinely original, it would be this one:
"nuance tends to lead to slop"
To increase quality, design API's and automated checks that remove the nuance from agents' decisions. (1/2)
🔗 danholloran.me/posts/reacts...
#react #webdev
🔗 danholloran.me/posts/reacts...
#react #webdev
useEffect も switch も禁止する lint で、コーディングエージェントの書き方を縛る
useEffect も switch も禁止する lint で、コーディングエージェントの書き方を縛る
I've seen a lot of useMemo used just to keep objects stable for useEffect.
I prefer creating those objects inside the effect when possible. It's less code, and one less thing to keep track of!
I've seen a lot of useMemo used just to keep objects stable for useEffect.
I prefer creating those objects inside the effect when possible. It's less code, and one less thing to keep track of!
More courses and posts at https://codingcat.dev
More courses and posts at https://codingcat.dev
Explore more Courses and Blog Posts at https://codingcat.dev
Explore more Courses and Blog Posts at https://codingcat.dev
Explore more Courses, Podcasts, and Blog Posts on https://codingcat.dev
Explore more Courses, Podcasts, and Blog Posts on https://codingcat.dev